2024-08-16 01:23:55 +07:00
|
|
|
import Page from "@/context/page-context";
|
|
|
|
import { useBuckets } from "./hooks";
|
2024-08-16 23:10:19 +07:00
|
|
|
import { Input } from "react-daisyui";
|
2024-08-16 01:23:55 +07:00
|
|
|
import BucketCard from "./components/bucket-card";
|
2024-08-16 23:10:19 +07:00
|
|
|
import CreateBucketDialog from "./components/create-bucket-dialog";
|
2024-08-16 01:23:55 +07:00
|
|
|
|
|
|
|
const BucketsPage = () => {
|
|
|
|
const { data } = useBuckets();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="container">
|
|
|
|
<Page title="Buckets" />
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div className="flex flex-row items-center gap-2">
|
|
|
|
<Input placeholder="Search..." />
|
|
|
|
<div className="flex-1" />
|
2024-08-16 23:10:19 +07:00
|
|
|
<CreateBucketDialog />
|
2024-08-16 01:23:55 +07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 md:gap-8 items-stretch mt-4 md:mt-8">
|
|
|
|
{data?.map((bucket) => (
|
|
|
|
<BucketCard key={bucket.id} data={bucket} />
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BucketsPage;
|