mirror of
https://github.com/gromlab-ru/slm-design.git
synced 2026-08-22 07:30:16 +03:00
feat: add example
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { BusinessProvider } from '@/infra/business'
|
||||
import type { {{name.pascalCase}}BusinessProviderProps } from '../types/{{name.kebabCase}}-business-provider-props.type'
|
||||
|
||||
/**
|
||||
* Route-level provider бизнес-модулей для {{name.pascalCase}} route.
|
||||
*
|
||||
* Используется для:
|
||||
* - владения business API в lifecycle route-ветки
|
||||
*/
|
||||
export const {{name.pascalCase}}BusinessProvider = (props: {{name.pascalCase}}BusinessProviderProps) => {
|
||||
const { children } = props
|
||||
|
||||
return (
|
||||
<BusinessProvider value={{}}>
|
||||
{children}
|
||||
</BusinessProvider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user