1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/app-desktop/gui/DialogTitle.tsx
Laurent c758377188
All: Add support for public-private key pairs and improved master password support (#5438)
Also improved SCSS support, which was needed for the master password dialog.
2021-10-03 16:00:49 +01:00

25 lines
576 B
TypeScript

import styled from 'styled-components';
const Root = styled.div`
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;
justifyContent?: string;
}
export default function DialogTitle(props: Props) {
return (
<Root justifyContent={props.justifyContent}>{props.title}</Root>
);
}