Files
twenty/front/src/modules/auth/components/Modal.tsx
2023-06-18 23:51:59 +02:00

26 lines
571 B
TypeScript

import React from 'react';
import styled from '@emotion/styled';
import { Modal as UIModal } from '@/ui/components/modal/Modal';
type OwnProps = {
children: React.ReactNode;
};
const StyledContainer = styled.div`
align-items: center;
display: flex;
flex-direction: column;
padding-bottom: ${({ theme }) => theme.spacing(10)};
padding-top: ${({ theme }) => theme.spacing(10)};
width: 400px;
`;
export function Modal({ children }: OwnProps): JSX.Element {
return (
<UIModal>
<StyledContainer>{children}</StyledContainer>
</UIModal>
);
}