import { ChevronRightIcon } from "@repo/rdx-ui/lib/icons"; import { Button } from "@repo/shadcn-ui/components/button"; import type { ReactNode } from "react"; import { useTranslation } from "react-i18next"; export function DashboardPanel({ title, icon, action, children, }: { title: string; icon?: ReactNode; action?: () => void; children: ReactNode; }) { const { t } = useTranslation("companies"); return (

{icon && ( )} {title}

{action && ( )}
{children}
); }