import { Box, Card, Icon, Switch, Text } from "@prismicio/editor-ui"; import { type FC, type PropsWithChildren } from "react"; type LabsListItemProps = PropsWithChildren<{ title: string; enabled: boolean; onToggle: (enabled: boolean) => void; }>; export const LabsListItem: FC = ({ title, enabled, onToggle, children, }) => { return ( {title} {children} onToggle(checked)} /> ); };