graphicek/client/src/pages/dashboard/components/DashboardHeader.tsx

20 lines
416 B
TypeScript
Raw Normal View History

2022-08-24 08:59:18 +02:00
import { Filters } from './Filters'
type Props = {
onNewBox: () => void
onRefresh: () => void
}
export const DashboardHeader = ({ onNewBox, onRefresh }: Props) => {
return (
<div className="dashboard-head">
2022-08-24 08:59:18 +02:00
<div className="inner">
<button onClick={onNewBox}>Add box</button>
<Filters />
<button onClick={onRefresh}>Refresh all</button>
</div>
<div className="shadow"></div>
</div>
)
}