import { find } from "@vendetta/metro"; import { React, ReactNative as RN } from "@vendetta/metro/common"; import Text from "./Text"; const { FormCheckbox } = find(x => x?.FormCheckbox && !x?.FormCardSection); export default function InlineCheckbox({ label, initialValue, update, }: { label: string; initialValue: boolean; update: (val: boolean) => void; }) { const [value, setValue] = React.useState(initialValue); update(value); return ( { setValue(!value); }} style={{ flexDirection: "row", alignItems: "center", gap: 8, marginTop: 12, }} > {label} ); }