/opt/mawid/apps/dashboard/components
NameSizeModeActions
ui.tsx37890644editdlrm
Edit: /opt/mawid/apps/dashboard/components/ui.tsx (3789B)
'use client'; import { type ReactNode } from 'react'; export function Button({ children, onClick, variant = 'primary', type = 'button', disabled, className = '', }: { children: ReactNode; onClick?: () => void; variant?: 'primary' | 'secondary' | 'danger' | 'ghost'; type?: 'button' | 'submit'; disabled?: boolean; className?: string; }) { const styles = { primary: 'bg-emerald-600 text-white hover:bg-emerald-700', secondary: 'bg-slate-100 text-slate-700 hover:bg-slate-200', danger: 'bg-red-50 text-red-700 hover:bg-red-100', ghost: 'text-slate-500 hover:bg-slate-100', }[variant]; return ( ); } export function Input(props: React.InputHTMLAttributes) { return ( ); } export function Select(props: React.SelectHTMLAttributes) { return (