ant-design/components/date-picker/generatePicker/useComponents.ts
陈帅 09b86845a7
Revert "feat: Add okButtonProps to time picker (#49657)" (#49663)
This reverts commit 6c656c85f7.

Co-authored-by: 二货爱吃白萝卜 <smith3816@gmail.com>
2024-07-01 15:23:07 +08:00

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],
);
}