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

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

Start your journey by creating a new Link!

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