mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-07 20:08:21 +08:00
16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
|
import type { AlertProps } from './Alert';
|
||
|
import InternalAlert from './Alert';
|
||
|
import ErrorBoundary from './ErrorBoundary';
|
||
|
|
||
|
export type { AlertProps } from './Alert';
|
||
|
|
||
|
type CompoundedComponent = React.FC<AlertProps> & {
|
||
|
ErrorBoundary: typeof ErrorBoundary;
|
||
|
};
|
||
|
|
||
|
const Alert = InternalAlert as CompoundedComponent;
|
||
|
|
||
|
Alert.ErrorBoundary = ErrorBoundary;
|
||
|
|
||
|
export default Alert;
|