mirror of
https://github.com/vercel/commerce.git
synced 2025-07-05 04:31:22 +00:00
23 lines
568 B
TypeScript
23 lines
568 B
TypeScript
import React from 'react'
|
|
import s from './CollectionHeading.module.scss'
|
|
import HeadingCommon from '../HeadingCommon/HeadingCommon'
|
|
|
|
interface CollectionHeadingProps {
|
|
type?: 'default' | 'highlight' | 'light';
|
|
title: string;
|
|
subtitle: string;
|
|
}
|
|
|
|
const CollectionHeading = ({ type = 'default', title, subtitle }: CollectionHeadingProps) => {
|
|
|
|
return (
|
|
<section>
|
|
<HeadingCommon type={type}>{title}</HeadingCommon>
|
|
<div className={s.subtitle}>{subtitle}</div>
|
|
</section>
|
|
)
|
|
|
|
}
|
|
|
|
export default CollectionHeading
|