-
Matiss Janis Aboltins authored
Moving the code to separate files. Functionally should be no differences.
Matiss Janis Aboltins authoredMoving the code to separate files. Functionally should be no differences.
Paragraph.tsx 435 B
import { css } from 'glamor';
import { type HTMLPropsWithStyle } from '../../types/utils';
type ParagraphProps = HTMLPropsWithStyle<HTMLDivElement> & {
isLast?: boolean;
};
export default function Paragraph({
style,
isLast,
children,
...props
}: ParagraphProps) {
return (
<div
{...props}
{...css(!isLast && { marginBottom: 15 }, style, { lineHeight: '1.5em' })}
>
{children}
</div>
);
}