mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
33 lines
537 B
TypeScript
33 lines
537 B
TypeScript
import { type HTMLProps } from 'react';
|
|
|
|
import { css } from '@emotion/css';
|
|
|
|
import { type CSSProperties } from './styles';
|
|
|
|
type ParagraphProps = HTMLProps<HTMLDivElement> & {
|
|
style?: CSSProperties;
|
|
isLast?: boolean;
|
|
};
|
|
|
|
export function Paragraph({
|
|
style,
|
|
isLast,
|
|
children,
|
|
...props
|
|
}: ParagraphProps) {
|
|
return (
|
|
<div
|
|
{...props}
|
|
className={css([
|
|
!isLast && { marginBottom: 15 },
|
|
style,
|
|
{
|
|
lineHeight: '1.5em',
|
|
},
|
|
])}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|