您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PageTitle.tsx 433B

1234567891011121314151617181920
  1. import React from 'react'
  2. import { Typography } from 'antd';
  3. const { Title } = Typography;
  4. type PageTitleProps = {
  5. title: string
  6. }
  7. const PageTitle: React.FC<PageTitleProps> = ({ title }) => {
  8. return (
  9. <div className='bg-[#480066] flex justify-center py-3'>
  10. <Title level={4} style={{margin:0, color:"white"}}>
  11. {title}
  12. </Title>
  13. </div>
  14. )
  15. }
  16. export default PageTitle