mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
24 lines
534 B
TypeScript
24 lines
534 B
TypeScript
|
import { useToken } from '@chakra-ui/react';
|
||
|
import { ReactNode } from 'react';
|
||
|
|
||
|
type IAIOptionProps = {
|
||
|
children: ReactNode | string | number;
|
||
|
value: string | number;
|
||
|
key: string | number;
|
||
|
};
|
||
|
|
||
|
export default function IAIOption(props: IAIOptionProps) {
|
||
|
const { children, value, key } = props;
|
||
|
const [base800, base200] = useToken('colors', ['base.800', 'base.200']);
|
||
|
|
||
|
return (
|
||
|
<option
|
||
|
key={key}
|
||
|
value={value}
|
||
|
style={{ background: base800, color: base200 }}
|
||
|
>
|
||
|
{children}
|
||
|
</option>
|
||
|
);
|
||
|
}
|