SectionHeader.tsx 479 B

1234567891011121314151617181920
  1. import { cn } from 'ui'
  2. export interface SectionHeaderProps {
  3. title: string
  4. description: string
  5. className?: string
  6. }
  7. const SectionHeader = ({ title, description, className }: SectionHeaderProps) => {
  8. return (
  9. <div className={cn('mx-auto flex flex-col gap-10 py-14', className)}>
  10. <div>
  11. <p className="text-xl">{title}</p>
  12. <p className="text-sm text-foreground-light">{description}</p>
  13. </div>
  14. </div>
  15. )
  16. }
  17. export default SectionHeader