refactor(handlebars): implement children for genereated component
This commit is contained in:
parent
985f689273
commit
82ddbe1be0
@ -4,10 +4,11 @@ import styles from './{{ properCase name }}.module.scss'
|
||||
|
||||
interface {{ properCase name }}Props {
|
||||
className?: string
|
||||
children?: React.ReactNode
|
||||
}
|
||||
|
||||
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>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user