mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
09b86845a7
This reverts commit 6c656c85f7
.
Co-authored-by: 二货爱吃白萝卜 <smith3816@gmail.com>
15 lines
316 B
TypeScript
15 lines
316 B
TypeScript
import { useMemo } from 'react';
|
|
import type { Components } from 'rc-picker/lib/interface';
|
|
|
|
import PickerButton from '../PickerButton';
|
|
|
|
export default function useComponents(components?: Components) {
|
|
return useMemo(
|
|
() => ({
|
|
button: PickerButton,
|
|
...components,
|
|
}),
|
|
[components],
|
|
);
|
|
}
|