import React, { useState } from "react"; import NewLinkModal from "./ModalContent/NewLinkModal"; import { useTranslation } from "next-i18next"; type Props = { text?: string; }; export default function NoLinksFound({ text }: Props) { const { t } = useTranslation(); const [newLinkModal, setNewLinkModal] = useState(false); return (

{text || "You haven't created any Links Here"}

{t("start_journey")}

{ setNewLinkModal(true); }} className="inline-flex gap-1 relative w-[11rem] items-center btn btn-accent dark:border-violet-400 text-white group" > {t("create_new_link")}
{newLinkModal ? ( setNewLinkModal(false)} /> ) : undefined}
); }