Add Oudelaa dashboard API integration
Deploy To Ghaymah / deploy (push) Has been cancelled

This commit is contained in:
boutmoun123
2026-05-25 20:36:52 +03:00
parent 367fce6557
commit 8863f61d00
90 changed files with 16694 additions and 1 deletions
@@ -0,0 +1,32 @@
"use client";
import { cn } from "@/lib/utils";
type SwitchProps = {
checked: boolean;
onCheckedChange: (value: boolean) => void;
className?: string;
};
export function Switch({ checked, onCheckedChange, className }: SwitchProps) {
return (
<button
type="button"
role="switch"
aria-checked={checked}
onClick={() => onCheckedChange(!checked)}
className={cn(
"relative h-6 w-11 rounded-full border border-border transition",
checked ? "bg-primary" : "bg-secondary",
className,
)}
>
<span
className={cn(
"absolute top-0.5 h-[18px] w-[18px] rounded-full bg-background transition",
checked ? "right-0.5" : "right-[22px]",
)}
/>
</button>
);
}