2
0
Files
bot/apps/builder/components/board/graph/BlockNode/StepNode/StepNodeOverlay.tsx
Baptiste Arnaud 44b478550f feat(ui): 💄 Face lift
2022-01-19 09:44:21 +01:00

27 lines
617 B
TypeScript

import { StackProps, HStack } from '@chakra-ui/react'
import { StartStep, Step } from 'models'
import { StepIcon } from 'components/board/StepTypesList/StepIcon'
import { StepNodeContent } from './StepNodeContent'
export const StepNodeOverlay = ({
step,
...props
}: { step: Step | StartStep } & StackProps) => {
return (
<HStack
p="3"
borderWidth="1px"
rounded="lg"
bgColor="white"
cursor={'grab'}
w="264px"
pointerEvents="none"
shadow="lg"
{...props}
>
<StepIcon type={step.type} />
<StepNodeContent step={step} />
</HStack>
)
}