refactor: refactor superadmin modules

This commit is contained in:
2026-06-17 01:35:09 +05:30
parent 6f4399a048
commit 1325afdab2
40 changed files with 1709 additions and 1320 deletions

View File

@@ -0,0 +1,37 @@
'use client';
import { Search } from 'lucide-react';
import {
InputGroup,
InputGroupAddon,
InputGroupInput,
} from '@/components/ui/input-group';
import { cn } from '@/lib/utils';
interface TableSearchInputProps {
value: string;
onChange: (value: string) => void;
placeholder?: string;
className?: string;
}
export function TableSearchInput({
value,
onChange,
placeholder = 'Search...',
className,
}: TableSearchInputProps) {
return (
<InputGroup className={cn('md:max-w-xs', className)}>
<InputGroupAddon>
<Search />
</InputGroupAddon>
<InputGroupInput
value={value}
onChange={(event) => onChange(event.target.value)}
placeholder={placeholder}
/>
</InputGroup>
);
}