mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
67165a78fc
* docs: live demo * chore: bump dumi * chore: fix lint * chore: fix lint * chore: update demo * chore: bump dumi * docs: enhance live demo * docs: update text
17 lines
410 B
TypeScript
17 lines
410 B
TypeScript
import type React from 'react';
|
|
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;
|