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
2022-08-31 21:44:33 +02:00

12 lines
328 B
Handlebars

import classNames from 'clsx'
export interface {{ properCase name }}Props {
className?: string
}
export const {{ properCase name }}: React.FC<React.PropsWithChildren<{{ properCase name }}Props>> = (props) => {
const { children, className } = props
return <main className={classNames(className, '')}>{children}</main>
}