Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

582 B
Raw Blame
import { SettingsRow } from "@/components/settings/settings-row";
import { Switch } from "@/components/ui/switch";

type EventSwitchRowProps = {
  title: string;
  description: string;
  checked: boolean;
  onCheckedChange: (checked: boolean) => void;
};

export function EventSwitchRow({
  title,
  description,
  checked,
  onCheckedChange,
}: EventSwitchRowProps) {
  return (
    <SettingsRow title={title} description={description}>
      <Switch
        aria-label={title}
        checked={checked}
        onCheckedChange={onCheckedChange}
      />
    </SettingsRow>
  );
}