import ButtonSecondary from "../buttons/ButtonSecondary"; import IconEmptyResults from "~/components/ui/icons/IconEmptyResults"; import clsx from "clsx"; import { PlusIcon, ReloadIcon } from "~/components/ui/icons/vendor"; interface Captions { description?: string; thereAreNo?: string; new?: string; } interface Props { className?: string; captions: Captions; to?: string; icon?: string; onClick?: () => void; } export default function EmptyState({ className, captions, to, icon, onClick }: Props) { return ( // Subframe EmptyState layout: centered column, px-4 py-8, gap-6 stack, gap-4 text block, 48px icon, body-large title / body-default body

{captions.thereAreNo}

{captions.description && (

{captions.description}

)}
{captions.new && (
{(() => { if (to) { return ( {(() => { if (icon === "plus") { return ; } else if (icon === "refresh") { return ; } else { return null; } })()}
{captions.new}
); } else { return ( {icon === "plus" && }
{captions.new}
); } })()}
)}
); }