import { Button, Drawer, DrawerProps } from 'antd' import React, { useState } from 'react' import { useStyle } from './style' import { generateUUID } from '@/utils/uuid.ts' export interface DrawerPickerProps extends DrawerProps { target?: React.ReactNode children?: React.ReactNode key?: string } const DrawerPicker = ({ children, target, ...props }: DrawerPickerProps) => { const { styles } = useStyle() const [ open, setOpen ] = useState(false) const getTarget = () => { const def = return {target ?? def} } return (