This repository has been archived on 2026-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
Gishen-Admin/src/pages/finance/SwitchRow.tsx
kirukib c2fd9d6431 first commit
Scaffold Gishen Admin: React/Vite shadcn console with role modules, EN/AM i18n, mocks, and backend spec.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 18:01:56 +03:00

21 lines
487 B
TypeScript

import { Button } from '@/components/ui/button'
export function SwitchRow({
label,
enabled,
onToggle,
}: {
label: string
enabled: boolean
onToggle: () => void
}) {
return (
<div className="flex items-center justify-between rounded-xl border p-3">
<span className="text-sm font-medium">{label}</span>
<Button size="sm" variant={enabled ? 'default' : 'outline'} onClick={onToggle}>
{enabled ? 'Enabled' : 'Disabled'}
</Button>
</div>
)
}