mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 07:45:02 -05:00
20 lines
460 B
TypeScript
20 lines
460 B
TypeScript
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';
|