import posthog from "posthog-js"; import React from "react"; import { useSelector } from "react-redux"; import { SuggestionItem } from "#/components/features/suggestions/suggestion-item"; import type { RootState } from "#/store"; import { useAuth } from "#/context/auth-context"; interface ActionSuggestionsProps { onSuggestionsClick: (value: string) => void; } export function ActionSuggestions({ onSuggestionsClick, }: ActionSuggestionsProps) { const { githubTokenIsSet } = useAuth(); const { selectedRepository } = useSelector( (state: RootState) => state.initialQuery, ); const [hasPullRequest, setHasPullRequest] = React.useState(false); return (