2024-11-28 17:23:53 +00:00
|
|
|
"use client";
|
2024-12-11 18:28:57 +00:00
|
|
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
2024-11-28 17:23:53 +00:00
|
|
|
import SiteBreadcrumb from "@/components/site-breadcrumb";
|
2024-12-11 18:28:57 +00:00
|
|
|
import TableImage from "./components/table-image";
|
2024-12-10 10:35:03 +00:00
|
|
|
import { UploadIcon } from "lucide-react";
|
2024-11-28 17:23:53 +00:00
|
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
|
import { Icon } from "@iconify/react/dist/iconify.js";
|
2024-12-04 17:28:40 +00:00
|
|
|
import { Link } from "@/components/navigation";
|
2025-02-20 11:29:08 +00:00
|
|
|
import { useTranslations } from "next-intl";
|
2024-11-28 17:23:53 +00:00
|
|
|
|
|
|
|
|
const ReactTableImagePage = () => {
|
2025-02-20 11:29:08 +00:00
|
|
|
const t = useTranslations("AnalyticsDashboard");
|
2024-11-28 17:23:53 +00:00
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<SiteBreadcrumb />
|
|
|
|
|
<div className="space-y-4">
|
|
|
|
|
<Card className="py-4 px-3">
|
2025-01-31 14:16:41 +00:00
|
|
|
<div className="flex flex-wrap justify-between items-center px-5">
|
2024-11-28 17:23:53 +00:00
|
|
|
<div className="flex flex-row items-center text-xl font-medium text-default-900 gap-2">
|
|
|
|
|
<div>
|
|
|
|
|
<Icon icon="icon-park-outline:check-one" />
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
2025-07-06 09:23:45 +00:00
|
|
|
<span className="text-red-500">{t("average", { defaultValue: "Average" })} :0</span>
|
2025-02-20 11:29:08 +00:00
|
|
|
</p>
|
|
|
|
|
<p className="text-sm">
|
2025-07-06 09:23:45 +00:00
|
|
|
{t("Hasil_unggah_disetujui_hari_ini", { defaultValue: "Hasil Unggah Disetujui Hari Ini" })}
|
2024-11-28 17:23:53 +00:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex flex-row items-center text-xl font-medium text-default-900 gap-2">
|
|
|
|
|
<div>
|
|
|
|
|
<Icon icon="material-symbols:settings-backup-restore-rounded" />
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
2025-07-06 09:23:45 +00:00
|
|
|
<span className="text-red-500">{t("average", { defaultValue: "Average" })} :0</span>
|
2024-11-28 17:23:53 +00:00
|
|
|
</p>
|
2025-07-06 09:23:45 +00:00
|
|
|
<p className="text-sm">{t("Hasil_unggah_direvisi_hari_ini", { defaultValue: "Hasil Unggah Direvisi Hari Ini" })}</p>
|
2024-11-28 17:23:53 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex flex-row items-center text-xl font-medium text-default-900 gap-2">
|
|
|
|
|
<div>
|
|
|
|
|
<Icon icon="healthicons:no-outline" />
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
2025-07-06 09:23:45 +00:00
|
|
|
<span className="text-red-500">{t("average", { defaultValue: "Average" })} :0</span>
|
2024-11-28 17:23:53 +00:00
|
|
|
</p>
|
2025-07-06 09:23:45 +00:00
|
|
|
<p className="text-sm">{t("Hasil_unggah_ditolak_hari_ini", { defaultValue: "Hasil Unggah Ditolak Hari Ini" })}</p>
|
2024-11-28 17:23:53 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
<Card>
|
2024-12-11 18:28:57 +00:00
|
|
|
<CardHeader className="border-b border-solid border-default-200 mb-6">
|
|
|
|
|
<CardTitle>
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
<div className="flex-1 text-xl font-medium text-default-900">
|
2025-07-06 09:23:45 +00:00
|
|
|
{t("image", { defaultValue: "Image" })}
|
2024-12-11 18:28:57 +00:00
|
|
|
</div>
|
|
|
|
|
<div className="flex-none">
|
2024-12-13 00:39:20 +00:00
|
|
|
<Link href={"/contributor/content/image/create"}>
|
2024-12-11 18:28:57 +00:00
|
|
|
<Button color="primary" className="text-white">
|
2025-04-09 12:19:36 +00:00
|
|
|
<UploadIcon size={18} className="mr-2" />
|
2025-07-06 09:23:45 +00:00
|
|
|
{t("create-image", { defaultValue: "Create Image" })}
|
2024-12-11 18:28:57 +00:00
|
|
|
</Button>
|
|
|
|
|
</Link>
|
2025-01-01 08:33:42 +00:00
|
|
|
{/* <Link href={"/contributor/content/image/createAi"}>
|
2024-12-29 09:09:10 +00:00
|
|
|
<Button color="primary" className="text-white ml-3">
|
|
|
|
|
<UploadIcon />
|
|
|
|
|
Unggah Foto Dengan AI
|
|
|
|
|
</Button>
|
2025-01-01 08:33:42 +00:00
|
|
|
</Link> */}
|
2024-12-11 18:28:57 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</CardTitle>
|
|
|
|
|
</CardHeader>
|
2024-11-28 17:23:53 +00:00
|
|
|
<CardContent className="p-0">
|
|
|
|
|
<TableImage />
|
|
|
|
|
</CardContent>
|
|
|
|
|
</Card>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2024-11-27 04:14:10 +00:00
|
|
|
};
|
|
|
|
|
|
2024-11-28 17:23:53 +00:00
|
|
|
export default ReactTableImagePage;
|