"use client";
import { Badge } from "@kandev/ui/badge";
import { Button } from "@kandev/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@kandev/ui/card";
import { Switch } from "@kandev/ui/switch";
import { IconFlask, IconLock, IconRefresh } from "@tabler/icons-react";
import type { RuntimeFlagState } from "@/lib/types/runtime-flags";
type FeatureToggleCardProps = {
flag: RuntimeFlagState;
saving: boolean;
onChange: (next: boolean) => void;
onReset: () => void;
};
export function FeatureToggleCard({ flag, saving, onChange, onReset }: FeatureToggleCardProps) {
const disabled = saving || flag.env_locked || !flag.mutable;
return (
{flag.description} {flag.risk_description}