import type { ReactNode } from 'react';
import { Progress } 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 Values = () => (
  <Surface>
    <div className="flex w-80 flex-col gap-4">
      <Progress value={0} />
      <Progress value={35} />
      <Progress value={72} />
      <Progress value={100} />
    </div>
  </Surface>
);

export const Labelled = () => (
  <Surface>
    <div className="flex w-80 flex-col gap-2">
      <div className="flex items-center justify-between text-sm">
        <span>Migrating site files</span>
        <span className="text-muted-foreground">72%</span>
      </div>
      <Progress value={72} />
    </div>
  </Surface>
);
