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 (
|
2022-08-24 22:06:05 +02:00
|
|
|
<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>
|
|
|
|
|
)
|
|
|
|
|
}
|