import * as React from "react";
import { Fig } from "@audi-dash/ui";

function Root({ children }: { children: React.ReactNode }) {
  return (
    <div className="ads-root" data-theme="nacht" style={{ padding: 16, display: "inline-block" }}>
      {children}
    </div>
  );
}

export function Default() {
  return (
    <Root>
      <Fig value={128} unit="km" />
    </Root>
  );
}

export function LargeHero() {
  return (
    <Root>
      <Fig value={64} unit="%" size={40} />
    </Root>
  );
}

export function Compact() {
  return (
    <Root>
      <Fig value={7.2} unit="l/100km" size={17} />
    </Root>
  );
}

export function NoUnit() {
  return (
    <Root>
      <Fig value={2.4} size={28} />
    </Root>
  );
}
