2021-05-13 18:57:37 +02:00
|
|
|
import styled from 'styled-components';
|
|
|
|
|
2024-04-05 13:16:49 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
2021-12-20 17:08:43 +02:00
|
|
|
const Root = styled.div<any>`
|
2021-08-16 16:20:14 +02:00
|
|
|
display: flex;
|
2021-10-03 17:00:49 +02:00
|
|
|
justify-content: ${props => props.justifyContent ? props.justifyContent : 'center'};
|
2021-05-13 18:57:37 +02:00
|
|
|
font-family: ${props => props.theme.fontFamily};
|
2021-07-25 14:15:56 +02:00
|
|
|
font-size: ${props => props.theme.fontSize * 1.5}px;
|
2021-05-13 18:57:37 +02:00
|
|
|
line-height: 1.6em;
|
|
|
|
color: ${props => props.theme.color};
|
|
|
|
font-weight: bold;
|
2021-10-03 17:00:49 +02:00
|
|
|
margin-bottom: 1em;
|
2021-05-13 18:57:37 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
title: string;
|
2021-08-16 16:20:14 +02:00
|
|
|
justifyContent?: string;
|
2021-05-13 18:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default function DialogTitle(props: Props) {
|
|
|
|
return (
|
2021-08-16 16:20:14 +02:00
|
|
|
<Root justifyContent={props.justifyContent}>{props.title}</Root>
|
2021-05-13 18:57:37 +02:00
|
|
|
);
|
|
|
|
}
|