mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
23 lines
567 B
TypeScript
23 lines
567 B
TypeScript
import type { CSSProperties } from 'react';
|
|
|
|
import { styled } from '../../styles';
|
|
|
|
export const ModalWrapper = styled('div')<{
|
|
width?: CSSProperties['width'];
|
|
height?: CSSProperties['height'];
|
|
minHeight?: CSSProperties['minHeight'];
|
|
}>(({ width, height, minHeight }) => {
|
|
return {
|
|
width,
|
|
height,
|
|
minHeight,
|
|
backgroundColor: 'var(--affine-background-overlay-panel-color)',
|
|
boxShadow: 'var(--affine-shadow-3)',
|
|
borderRadius: '12px',
|
|
position: 'relative',
|
|
maxHeight: 'calc(100vh - 32px)',
|
|
};
|
|
});
|
|
|
|
export default ModalWrapper;
|