Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
children: NonNullable;
/** Name of the entire application or project. */
name: string;
};
export type State = {
breadcrumbs: Breadcrumb[];
data: { [id: string]: object };
toasts: Toast[];
};
export { AppContext };
export class AppShell extends React.Component {
static propTypes = {
name: componentName.isRequired,
};
static defaultProps = {
name: Core.settings.name,
};
state = {
breadcrumbs: [],
data: {},
toasts: [],
};
addBreadcrumb = (label: string, props: Breadcrumb['props'] = {}) => {
const id = uuid();
this.setState(prevState => ({