import type { HTMLAttributes, ReactNode } from "react";
import { cn } from "./cn.js";
export interface SettingsCardProps extends Omit, "title"> {
eyebrow?: ReactNode;
title: ReactNode;
description?: ReactNode;
actions?: ReactNode;
}
export function SettingsCard({ eyebrow, title, description, actions, children, className, ...props }: SettingsCardProps) {
return (
{eyebrow ?
{eyebrow} : null}
{title}
{description ?
{description}
: null}
{actions ? {actions}
: null}
{children}
);
}
export interface SwitchProps {
checked: boolean;
label: string;
disabled?: boolean;
onChange: (checked: boolean) => void;
}
export function Switch({ checked, label, disabled = false, onChange }: SwitchProps) {
return (
);
}