import type { ReactNode } from 'react';
import { Checkbox, Input, Label } 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 }) => (
  <div className="bg-background text-foreground rounded-lg p-6">{children}</div>
);

export const Default = () => (
  <Surface>
    <Label>Business name</Label>
  </Surface>
);

export const WithInput = () => (
  <Surface>
    <div className="flex w-72 flex-col gap-2">
      <Label htmlFor="business">Business name</Label>
      <Input id="business" placeholder="Cloudrite Ltd" />
    </div>
  </Surface>
);

export const WithCheckbox = () => (
  <Surface>
    <Label className="flex items-center gap-2">
      <Checkbox defaultChecked />
      Send me the monthly uptime report
    </Label>
  </Surface>
);
