bb-plane-fork/web/core/components/empty-state/section-empty-state-root.tsx
Vamsi Krishna e401c9d6e4
[WEB-4028] feat: sub work item filters and grouping (#6997)
* feat: added filters for sub issues

* feat: added list groups for sub issues

* chore: updated order for sub work item properties

* feat: filters for sub work items

* feat: added filtering and ordering at frontend

* chore: reverted backend filters

* feat: added empty states

* chore: code improvemnt

---------

Co-authored-by: sangeethailango <sangeethailango21@gmail.com>
2025-05-09 14:24:06 +05:30

31 lines
948 B
TypeScript

"use client";
import { FC } from "react";
import { cn } from "@plane/utils";
type Props = {
icon: React.ReactNode;
title: string;
description?: string;
actionElement?: React.ReactNode;
customClassName?: string;
};
export const SectionEmptyState: FC<Props> = (props) => {
const { title, description, icon, actionElement, customClassName } = props;
return (
<div
className={cn(
"flex flex-col gap-4 items-center justify-center rounded-md border border-custom-border-200 p-10",
customClassName
)}
>
<div className="flex flex-col items-center gap-2">
<div className="flex items-center justify-center size-8 bg-custom-background-80 rounded">{icon}</div>
<span className="text-sm font-medium">{title}</span>
{description && <span className="text-xs text-custom-text-300">{description}</span>}
</div>
{actionElement && <>{actionElement}</>}
</div>
);
};