wheelshare-frontend/src/components/UI/UISecondaryHeader.tsx
Michael Fatemi 98a8e51b7b Organize
2021-07-08 13:51:24 -04:00

18 lines
318 B
TypeScript

const baseStyle = {
marginTop: '0rem',
marginBottom: '0.25em',
textAlign: 'center',
} as const;
export default function UISecondaryHeader({
style,
children,
...props
}: JSX.IntrinsicElements['h2']) {
return (
<h2 style={style ? { ...baseStyle, ...style } : baseStyle} {...props}>
{children}
</h2>
);
}