// react import React, { useState } from "react"; // next import Link from "next/link"; // icons import { LinkIcon, PlusIcon } from "@heroicons/react/24/outline"; // components import { Label, WebViewModal, CreateUpdateLinkForm } from "components/web-view"; // ui import { SecondaryButton } from "components/ui"; // types import type { linkDetails } from "types"; type Props = { allowed: boolean; links?: linkDetails[]; }; export const IssueLinks: React.FC = (props) => { const { links, allowed } = props; const [isOpen, setIsOpen] = useState(false); return (
setIsOpen(false)} modalTitle="Add Link"> setIsOpen(false)} />
{links?.map((link) => (
{link.title}
))} setIsOpen(true)} className="w-full !py-2 text-custom-text-300 !text-base flex items-center justify-center" > Add
); };