mirror of
https://github.com/SomboChea/ui
synced 2024-05-06 19:41:36 +07:00
17 lines
624 B
TypeScript
17 lines
624 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import DialogTitle from '../../muiComponents/DialogTitle';
|
|
import DialogContent from '../../muiComponents/DialogContent';
|
|
import { Theme } from '../../design-tokens/theme';
|
|
|
|
export const Title = styled(DialogTitle)<{ theme?: Theme }>(props => ({
|
|
backgroundColor: props.theme && props.theme.palette.primary.main,
|
|
color: props.theme && props.theme.palette.white,
|
|
fontSize: props.theme && props.theme.fontSize.lg,
|
|
}));
|
|
|
|
export const Content = styled(DialogContent)<{ theme?: Theme }>(({ theme }) => ({
|
|
padding: '0 24px',
|
|
backgroundColor: theme?.palette.background.default,
|
|
}));
|