ERP-node/frontend/components/admin/CompanyToolbar.tsx

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-08-21 09:41:46 +09:00
import { Plus } from "lucide-react";
import { CompanySearchFilter } from "@/types/company";
import { Button } from "@/components/ui/button";
interface CompanyToolbarProps {
searchFilter: CompanySearchFilter;
totalCount: number;
filteredCount: number;
onSearchChange: (filter: Partial<CompanySearchFilter>) => void;
onSearchClear: () => void;
onCreateClick: () => void;
}
/**
*
* , ,
*/
2025-10-22 14:52:13 +09:00
export function CompanyToolbar({ totalCount, onCreateClick }: CompanyToolbarProps) {
2025-08-21 09:41:46 +09:00
return (
2025-10-22 14:52:13 +09:00
<div className="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
{/* 왼쪽: 카운트 정보 */}
<div className="text-sm text-muted-foreground">
<span className="font-semibold text-foreground">{totalCount.toLocaleString()}</span>
2025-08-21 09:41:46 +09:00
</div>
2025-10-22 14:52:13 +09:00
{/* 오른쪽: 등록 버튼 */}
<Button onClick={onCreateClick} className="h-10 gap-2 text-sm font-medium">
<Plus className="h-4 w-4" />
</Button>
2025-08-21 09:41:46 +09:00
</div>
);
}