mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
f0c105d262
* feat: remove the hardcode of `use client` * chore: update `@ant-design/tools` * test: update * fix: incorrect dictionary * chore: update dep * ci: check use client * chore: update ci * fix: should be LIB_DIR * ci: should only run in dist * chore: update check tsx files
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;
|