mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
18 lines
394 B
TypeScript
18 lines
394 B
TypeScript
import { Checkbox, CheckboxProps } from '@chakra-ui/react';
|
|
import { memo, ReactNode } from 'react';
|
|
|
|
type IAICheckboxProps = CheckboxProps & {
|
|
label: string | ReactNode;
|
|
};
|
|
|
|
const IAICheckbox = (props: IAICheckboxProps) => {
|
|
const { label, ...rest } = props;
|
|
return (
|
|
<Checkbox colorScheme="accent" {...rest}>
|
|
{label}
|
|
</Checkbox>
|
|
);
|
|
};
|
|
|
|
export default memo(IAICheckbox);
|