2
2
mirror of https://github.com/Thream/website.git synced 2024-07-21 09:28:32 +02:00
website/generators/component/Component.tsx.hbs

12 lines
327 B
Handlebars
Raw Normal View History

import classNames from 'clsx'
2021-10-24 05:48:06 +02:00
export interface {{ properCase name }}Props {
className?: string
}
2022-05-12 20:35:46 +02:00
export const {{ properCase name }}: React.FC<React.PropsWithChildren{{ properCase name }}Props>> = (props) => {
2021-10-24 05:48:06 +02:00
const { children, className } = props
return <main className={classNames(className, '')}>{children}</main>
}