2021-05-13 18:57:37 +02:00
|
|
|
import styled from 'styled-components';
|
|
|
|
|
2024-04-05 12:16:49 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
2021-12-20 16:08:43 +01:00
|
|
|
const Root = styled.div<any>`
|
2021-08-16 15:20:14 +01:00
|
|
|
display: flex;
|
2021-10-03 16:00:49 +01: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 13:15:56 +01: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 16:00:49 +01:00
|
|
|
margin-bottom: 1em;
|
2021-05-13 18:57:37 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
title: string;
|
2021-08-16 15:20:14 +01:00
|
|
|
justifyContent?: string;
|
2021-05-13 18:57:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default function DialogTitle(props: Props) {
|
|
|
|
return (
|
2021-08-16 15:20:14 +01:00
|
|
|
<Root justifyContent={props.justifyContent}>{props.title}</Root>
|
2021-05-13 18:57:37 +02:00
|
|
|
);
|
|
|
|
}
|