@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
22 lines (21 loc) • 689 B
TypeScript
import { StackProps } from '@mui/material/Stack';
import { TypographyProps } from '@mui/material/Typography';
import { ImgHTMLAttributes, ReactNode } from 'react';
export type EmptyStateProps = ({
image: ReactNode;
imageProps?: never;
imageSrc?: never;
} | {
image?: never;
imageProps?: ImgHTMLAttributes<HTMLImageElement>;
imageSrc: string;
}) & {
imageHeight?: string | number;
title: string;
description?: string;
descriptionProps?: TypographyProps;
svgProps?: React.SVGAttributes<SVGSVGElement>;
titleProps?: TypographyProps;
} & StackProps;
declare const EmptyState: React.FunctionComponent<EmptyStateProps>;
export default EmptyState;