UNPKG

@rws-aoa/react-library

Version:

RWS AOA Design System

27 lines 803 B
import { TypographyProps } from '@mui/material'; import { ReactNode } from 'react'; export interface AoaNoPermissionProps { /** * Additional props for the {@link Typography} component */ readonly TypographyProps?: TypographyProps & { 'data-qa'?: string; }; /** * The 'no permission' message to display to the user */ readonly children: ReactNode; } /** * Creates a 'no permission' message for unauthorized users * * @param props - Props to pass to the No Permission component * @example * ```jsx * <AoaNoPermission> * This is a message * </AoaNoPermission> * ``` */ export declare function AoaNoPermission({ children, TypographyProps }: AoaNoPermissionProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=NoPermission.d.ts.map