refactor(handlebars): implement children for genereated component

This commit is contained in:
Walid 2022-04-22 19:06:35 +00:00
parent 985f689273
commit 82ddbe1be0
No known key found for this signature in database
GPG Key ID: 4BDA1ABD227F9279

View File

@ -4,10 +4,11 @@ import styles from './{{ properCase name }}.module.scss'
interface {{ properCase name }}Props { interface {{ properCase name }}Props {
className?: string className?: string
children?: React.ReactNode
} }
export const {{ properCase name }}: React.FC<{{ properCase name }}Props> = (props) => { export const {{ properCase name }}: React.FC<{{ properCase name }}Props> = (props) => {
const { className } = props const { className, children } = props
return <div className={classNames(className, styles.container)}></div> return <div className={classNames(className, styles.container)}>{children}</div>
} }