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

25 lines
543 B
TypeScript
Raw Normal View History

2022-08-24 22:36:37 +02:00
import { RefreshIcon } from '@/icons'
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>
2022-08-24 22:36:37 +02:00
<div className="spacer" />
2022-08-24 08:59:18 +02:00
<Filters />
2022-08-24 22:36:37 +02:00
<div className="spacer" />
<button onClick={onRefresh}>
<RefreshIcon /> Refresh all
</button>
2022-08-24 08:59:18 +02:00
</div>
<div className="shadow"></div>
</div>
)
}