import { IconButton } from '~/components/ui/IconButton'; import { useGit } from '~/lib/hooks/useGit'; export default function GitCloneButton() { const { ready, gitClone } = useGit(); const onClick = async (_e: any) => { if (!ready) { return; } const repoUrl = prompt('Enter the Git url'); if (repoUrl) { await gitClone(repoUrl); } }; return ( { onClick(e); }} className="w-full justify-center" title="Clone A Git Repo" > Clone A Git Repo
); }