import { Link } from '@tanstack/react-router' import { Button } from 'ui' import { Admonition } from 'ui-patterns/Admonition' import { useEditorType } from '@/components/layouts/editors/EditorsLayout.hooks' import { useDashboardHistory } from '@/hooks/misc/useDashboardHistory' import { useTabRouter, useTabsStateSnapshot } from '@/state/tabs' interface SnippetNotFoundProps { id?: string projectRef: string tabId?: string } export const SnippetNotFound = ({ id, projectRef, tabId }: SnippetNotFoundProps) => { const router = useTabRouter() const editor = useEditorType() const tabs = useTabsStateSnapshot() const { setLastVisitedSnippet } = useDashboardHistory() return (
{!!tabId ? ( ) : ( )}
) }