2
0
Files
bot/apps/builder/components/shared/Graph/Nodes/StepNode/StepNodeOverlay.tsx

27 lines
633 B
TypeScript
Raw Normal View History

import { StackProps, HStack } from '@chakra-ui/react'
2022-01-06 09:40:56 +01:00
import { StartStep, Step } from 'models'
import { StepIcon } from 'components/editor/StepsSideBar/StepIcon'
2022-01-22 18:24:57 +01:00
import { StepNodeContent } from './StepNodeContent/StepNodeContent'
export const StepNodeOverlay = ({
step,
...props
2022-01-03 17:39:59 +01:00
}: { step: Step | StartStep } & StackProps) => {
return (
<HStack
p="3"
borderWidth="1px"
rounded="lg"
bgColor="white"
cursor={'grab'}
w="264px"
pointerEvents="none"
2022-01-19 09:44:21 +01:00
shadow="lg"
{...props}
>
<StepIcon type={step.type} />
2022-01-12 09:10:59 +01:00
<StepNodeContent step={step} />
</HStack>
)
}