21 lines
615 B
TypeScript
21 lines
615 B
TypeScript
|
|
import cl from 'clsx'
|
|||
|
|
import type { {{name.pascalCase}}BusinessProps } from './types/{{name.kebabCase}}.type'
|
|||
|
|
import styles from './styles/{{name.kebabCase}}.module.css'
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <Назначение бизнес-модуля {{name.pascalCase}} в 1 строке>.
|
|||
|
|
*
|
|||
|
|
* Используется для:
|
|||
|
|
* - <сценарий 1>
|
|||
|
|
* - <сценарий 2>
|
|||
|
|
*/
|
|||
|
|
export const {{name.pascalCase}}Business = (props: {{name.pascalCase}}BusinessProps) => {
|
|||
|
|
const { children, className, ...htmlAttr } = props
|
|||
|
|
|
|||
|
|
return (
|
|||
|
|
<div {...htmlAttr} className={cl(styles.root, className)}>
|
|||
|
|
{children}
|
|||
|
|
</div>
|
|||
|
|
)
|
|||
|
|
}
|