import * as React from "react";
import { ActionButton } 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>
      <ActionButton>Speichern</ActionButton>
    </Root>
  );
}

export function Destructive() {
  return (
    <Root>
      <ActionButton variant="destructive">Fahrt löschen</ActionButton>
    </Root>
  );
}

export function Disabled() {
  return (
    <Root>
      <ActionButton disabled>Speichern</ActionButton>
    </Root>
  );
}

export function Group() {
  return (
    <Root>
      <div style={{ display: "flex", gap: 10 }}>
        <ActionButton>Übernehmen</ActionButton>
        <ActionButton variant="destructive">Verwerfen</ActionButton>
      </div>
    </Root>
  );
}
