2024-01-18 10:19:54 +00:00
|
|
|
import Image from "next/image";
|
|
|
|
import { useTheme } from "next-themes";
|
|
|
|
// assets
|
|
|
|
import DarkImage from "public/empty-state/dashboard/dark/issues-by-priority.svg";
|
|
|
|
import LightImage from "public/empty-state/dashboard/light/issues-by-priority.svg";
|
|
|
|
|
2024-01-24 14:11:02 +00:00
|
|
|
export const IssuesByPriorityEmptyState = () => {
|
2024-01-18 10:19:54 +00:00
|
|
|
// next-themes
|
|
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
|
2024-01-24 14:11:02 +00:00
|
|
|
const image = resolvedTheme === "dark" ? DarkImage : LightImage;
|
|
|
|
|
2024-01-18 10:19:54 +00:00
|
|
|
return (
|
2024-01-24 14:11:02 +00:00
|
|
|
<div className="text-center space-y-6 flex flex-col items-center">
|
|
|
|
<div className="h-24 w-24">
|
|
|
|
<Image src={image} className="w-full h-full" alt="Issues by state group" />
|
|
|
|
</div>
|
2024-01-18 10:19:54 +00:00
|
|
|
<p className="text-sm font-medium text-custom-text-300">
|
2024-01-24 14:11:02 +00:00
|
|
|
Issues assigned to you, broken down by
|
|
|
|
<br />
|
|
|
|
priority will show up here.
|
2024-01-18 10:19:54 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|