import { useMemo } from "react"; import { useUnistyles } from "react-native-unistyles"; import { Archive, Download, GitCommitHorizontal, GitMerge, RefreshCcw, Upload, } from "lucide-react-native"; import { GitHubIcon } from "@/components/icons/github-icon"; import { GitActionsSplitButton } from "@/components/git-actions-split-button"; import { useGitActions } from "@/hooks/use-git-actions"; interface WorkspaceGitActionsProps { serverId: string; cwd: string; } export function WorkspaceGitActions({ serverId, cwd }: WorkspaceGitActionsProps) { const { theme } = useUnistyles(); const icons = useMemo( () => ({ commit: , pull: , push: , viewPr: , createPr: , merge: , mergeFromBase: , archive: , }), [theme.colors.foregroundMuted], ); const { gitActions, isGit } = useGitActions({ serverId, cwd, icons }); if (!isGit) { return null; } return ; }