Files
AFFiNE-Mirror/packages/app/src/ui/modal/modal-wrapper.tsx
T
2022-12-09 01:35:36 +08:00

18 lines
441 B
TypeScript

import React, { CSSProperties, HTMLAttributes, PropsWithChildren } from 'react';
import { styled } from '@/styles';
export const ModalWrapper = styled.div<{
width?: CSSProperties['width'];
height?: CSSProperties['height'];
}>(({ theme, width, height }) => {
return {
width,
height,
backgroundColor: theme.colors.popoverBackground,
borderRadius: '12px',
position: 'relative',
};
});
export default ModalWrapper;