2023-03-12 03:36:29 +00:00
|
|
|
import { useToken } from '@chakra-ui/react';
|
|
|
|
import { ReactNode } from 'react';
|
|
|
|
|
|
|
|
type IAIOptionProps = {
|
|
|
|
children: ReactNode | string | number;
|
|
|
|
value: string | number;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function IAIOption(props: IAIOptionProps) {
|
2023-03-12 03:59:13 +00:00
|
|
|
const { children, value } = props;
|
2023-03-12 03:36:29 +00:00
|
|
|
const [base800, base200] = useToken('colors', ['base.800', 'base.200']);
|
|
|
|
|
|
|
|
return (
|
2023-03-12 03:59:13 +00:00
|
|
|
<option value={value} style={{ background: base800, color: base200 }}>
|
2023-03-12 03:36:29 +00:00
|
|
|
{children}
|
|
|
|
</option>
|
|
|
|
);
|
|
|
|
}
|