import { Tab } from "@headlessui/react"; import { LinkIncludingShortenedCollectionAndTags } from "@/types/global"; import EditLink from "./EditLink"; import LinkDetails from "./LinkDetails"; type Props = | { toggleLinkModal: Function; method: "CREATE"; isOwner?: boolean; activeLink?: LinkIncludingShortenedCollectionAndTags; defaultIndex?: number; className?: string; } | { toggleLinkModal: Function; method: "UPDATE"; isOwner: boolean; activeLink: LinkIncludingShortenedCollectionAndTags; defaultIndex?: number; className?: string; }; export default function CollectionModal({ className, defaultIndex, toggleLinkModal, isOwner, activeLink, method, }: Props) { return (
New Link
)}