Neah/components/mail/mail-toolbar.tsx
2025-04-17 14:05:38 +02:00

34 lines
1.0 KiB
TypeScript

import { Search } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
interface MailToolbarProps {
onRefresh: () => void;
onCompose: () => void;
onSearch: (query: string) => void;
}
export function MailToolbar({ onRefresh, onCompose, onSearch }: MailToolbarProps) {
return (
<div className="flex items-center justify-between p-4 border-b">
<div className="flex items-center space-x-4">
<Button variant="outline" onClick={onRefresh}>
Refresh
</Button>
<Button variant="outline" onClick={onCompose}>
Compose
</Button>
</div>
<div className="flex-1 max-w-md">
<div className="relative">
<Search className="absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" />
<Input
placeholder="Search emails..."
className="pl-8"
onChange={(e) => onSearch(e.target.value)}
/>
</div>
</div>
</div>
);
}