next-app-boilerplate/templates/Component/Component.tsx.hbs

18 lines
383 B
Handlebars
Raw Normal View History

import classNames from 'classnames'
2022-04-11 18:28:07 +02:00
import styles from './{{ properCase name }}.module.scss'
2022-04-11 18:28:07 +02:00
interface {{ properCase name }}Props {
2022-04-11 18:28:07 +02:00
className?: string
children?: string
2022-04-11 18:28:07 +02:00
}
export const {{ properCase name }}: React.FC<{{ properCase name }}Props> = ({
className,
children
}) => {
return (
<div className={classNames(className, styles.container)}>{children}</div>
)
2022-04-11 18:28:07 +02:00
}