Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
defaultRender(props.children, 'default_dashboard')} />
);
function renderComponent(
components: ComponentsState,
name: TKey,
props: ComponentsProps,
) {
const Component = components[name];
if (!Component) {
return defaultRender(undefined);
}
return ;
}
export const DefaultItem: React.FC = props => defaultRender(props.children);
export const DefaultResult: React.FC = props => defaultRender(props.children);
export const DefaultInput: React.FC = props => (
export const DefaultToast: React.FC = ({ children }) => defaultRender(children);
empty={() => defaultRender(props.children, 'default_menu')}
/>
export const DefaultTile: React.FC = props => defaultRender(props.children);
export const DefaultDialog: React.FC = props => defaultRender(props.children);