mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
12 lines
272 B
JavaScript
12 lines
272 B
JavaScript
import React from 'react';
|
|
import { Typography } from '@douyinfe/semi-ui';
|
|
|
|
export default function Headline({ text, size = 3 } = {}) {
|
|
const { Title } = Typography;
|
|
return (
|
|
<Title heading={size} style={{ marginBottom: '1rem' }}>
|
|
{text}
|
|
</Title>
|
|
);
|
|
}
|