Files
lislgosms/src/components/ui/QueryButtons.tsx
T

11 lines
528 B
TypeScript

import { Search } from 'lucide-react';
import { Button } from './Button';
/** Shared explicit-search actions for both portals. Editing filters never submits them. */
export function QueryButtons({ onQuery, onReset }: { onQuery: () => void; onReset: () => void }) {
return <div className="ui-query-buttons" style={{ display: 'flex', gap: 'var(--space-3)', alignItems: 'end' }}>
<Button icon={<Search size={16} />} onClick={onQuery}>查询</Button>
<Button onClick={onReset} variant="ghost">重置</Button>
</div>;
}