import { ReactNode } from 'react'; /** * add optional children prop if not provided * @typeParam Props - other props * * @deprecated since version `0.2.2`. Use `React.PropsWithChildren` instead * * @public * * @example * * ```tsx * import * as React from 'react'; * import { FCProps } from '@front.zen/mui'; * * interface OwnProps { * className: string; * } * * type Props = FCProps * * export function MyComponent(props: Props) { * return
{props.children}
* } * ``` */ export type FCProps = Props extends { children: any; } ? Props : Props & { children?: ReactNode; };