mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
23 lines
544 B
TypeScript
23 lines
544 B
TypeScript
import {useField} from "formik";
|
|
import {Checkbox} from "@nextui-org/react";
|
|
|
|
// @ts-ignore
|
|
const CheckboxInput = ({label, ...props}) => {
|
|
// @ts-ignore
|
|
const [field] = useField(props);
|
|
|
|
return (
|
|
<div className="flex flex-row flex-1 items-center gap-2 mb-2">
|
|
<Checkbox
|
|
{...field}
|
|
{...props}
|
|
id={field.name}
|
|
isSelected={field.value}
|
|
>
|
|
{label}
|
|
</Checkbox>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default CheckboxInput; |