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

28 lines
697 B
TypeScript
Raw Normal View History

import { StackProps, HStack } from '@chakra-ui/react'
import { StartStep, Step, StepIndices } 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,
indices,
...props
}: { step: Step | StartStep; indices: StepIndices } & 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} />
<StepNodeContent step={step} indices={indices} />
</HStack>
)
}