import type { ReactNode } from 'react'; import { Label, Switch } from 'cloudrite'; // Cloudrite is dark-only — foreground-coloured text and `border-border` are // invisible on the preview harness's white card body. Stories render on the // brand surface, which is also how a real screen is built. const Surface = ({ children }: { children: ReactNode }) => (
{children}
); export const States = () => (
); export const WithLabels = () => (
{[ ['auto-updates', 'Automatic WordPress updates', true], ['maintenance', 'Maintenance mode', false], ['alerts', 'Downtime SMS alerts', true], ].map(([id, label, on]) => (
))}
);