import { Tooltip, useColorMode, useToken } from '@chakra-ui/react'; import { Select, SelectProps } from '@mantine/core'; import { useChakraThemeTokens } from 'common/hooks/useChakraThemeTokens'; import { memo } from 'react'; import { mode } from 'theme/util/mode'; export type IAISelectDataType = { value: string; label: string; tooltip?: string; }; type IAISelectProps = SelectProps & { tooltip?: string; }; const IAIMantineSelect = (props: IAISelectProps) => { const { searchable = true, tooltip, ...rest } = props; const { base50, base100, base200, base300, base400, base500, base600, base700, base800, base900, accent200, accent300, accent400, accent500, accent600, } = useChakraThemeTokens(); const { colorMode } = useColorMode(); const [boxShadow] = useToken('shadows', ['dark-lg']); return (