File size: 460 Bytes
8a37e0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { Flex } from '@invoke-ai/ui-library';
import { memo, type PropsWithChildren } from 'react';
export const PromptOverlayButtonWrapper = memo((props: PropsWithChildren) => (
<Flex
pos="absolute"
insetBlockStart={0}
insetInlineEnd={0}
flexDir="column"
p={2}
gap={2}
alignItems="center"
justifyContent="center"
>
{props.children}
</Flex>
));
PromptOverlayButtonWrapper.displayName = 'PromptOverlayButtonWrapper';
|