mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
21 lines
505 B
TypeScript
21 lines
505 B
TypeScript
import type { ReactNode } from 'react';
|
|
import { Flex } from '../../basic/Flex';
|
|
|
|
/**
|
|
* A basic flex container used for modals specifically.
|
|
* We want a gap of var(--margins-md) for the items in the content of the modal.
|
|
*/
|
|
export const ModalFlexContainer = ({ children }: { children: ReactNode }) => {
|
|
return (
|
|
<Flex
|
|
$container={true}
|
|
$flexDirection="column"
|
|
$alignItems="center"
|
|
width="100%"
|
|
$flexGap="var(--margins-md)"
|
|
>
|
|
{children}
|
|
</Flex>
|
|
);
|
|
};
|