Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

558 B
Raw Blame
import { Button } from '@/components/ui/button';
import { useTranslations } from 'next-intl';

// The footer of a paged list: loads the next page. The caller renders it only while
// another page exists.
export default function ShowMoreButton({
  loading,
  onClick,
}: {
  loading: boolean;
  onClick: () => void;
}) {
  const t = useTranslations('common');
  return (
    <div className="mt-4">
      <Button variant="ghost" size="sm" disabled={loading} onClick={onClick}>
        {loading ? t('loading') : t('showMore')}
      </Button>
    </div>
  );
}