import { ArrowRight } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; import { Button } from './ui/button'; type SourcesPopoverFooterProps = { /** Fires when the sources link is followed so the caller can close its popover. */ onNavigate: () => void; onUploadClick: () => void; }; /** * Shared footer for source pickers: a link to the sources page and an upload * shortcut. */ export default function SourcesPopoverFooter({ onNavigate, onUploadClick, }: SourcesPopoverFooterProps) { const { t } = useTranslation(); return ( // One row when it fits (link left, upload right); on a narrow sheet or a // long locale the button wraps under the link.
); }