✨ Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block. Closes #380
This commit is contained in:
9
apps/builder/src/features/forge/ForgedBlockLabel.tsx
Normal file
9
apps/builder/src/features/forge/ForgedBlockLabel.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ForgedBlock } from '@typebot.io/forge-schemas'
|
||||
import { useForgedBlock } from './hooks/useForgedBlock'
|
||||
import { Text } from '@chakra-ui/react'
|
||||
|
||||
export const ForgedBlockLabel = ({ type }: { type: ForgedBlock['type'] }) => {
|
||||
const { blockDef } = useForgedBlock(type)
|
||||
|
||||
return <Text fontSize="sm">{blockDef?.name}</Text>
|
||||
}
|
||||
Reference in New Issue
Block a user