// * Packages import { Head, Link } from "@inertiajs/react"; import { ArrowLeft, Plus } from "lucide-react"; // * Components shadcn import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/ui/tooltip"; // * Other import useTrans from "@/hooks/use-translations"; export default function AppTitle({ title, linkBefore, linkAfter, }: { title: string; linkBefore?: string; linkAfter?: string; }) { const backTrans = useTrans("back.crud_back_to_list"); const newEntryTrans = useTrans("back.crud_add_entry"); return (
{linkBefore && (

{backTrans}

)}

{title}

{linkAfter && (

{newEntryTrans}

)}
); }