1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/app-desktop/gui/DialogTitle.tsx

26 lines
680 B
TypeScript
Raw Normal View History

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