"use client" import React from "react" import { linkShowCreateAtom } from "@/store/link" import { useAtom } from "jotai" import { useKey } from "react-use" import { LinkForm } from "./partials/form/link-form" import { motion, AnimatePresence } from "framer-motion" interface LinkManageProps {} const LinkManage: React.FC = () => { const [showCreate, setShowCreate] = useAtom(linkShowCreateAtom) const handleFormClose = () => setShowCreate(false) const handleFormFail = () => {} useKey("Escape", handleFormClose) return ( {showCreate && ( )} ) } LinkManage.displayName = "LinkManage" export { LinkManage }