mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
15 lines
323 B
TypeScript
15 lines
323 B
TypeScript
import { useMemo } from 'react';
|
|
import type { Components } from '@rc-component/picker/interface';
|
|
|
|
import PickerButton from '../PickerButton';
|
|
|
|
export default function useComponents(components?: Components) {
|
|
return useMemo(
|
|
() => ({
|
|
button: PickerButton,
|
|
...components,
|
|
}),
|
|
[components],
|
|
);
|
|
}
|