Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

635 B
Raw Blame
import { CircleAlertIcon, RefreshCwIcon } from "lucide-react";
import { SettingsRow } from "@/components/settings/settings-row";
import { Button } from "@/components/ui/button";

type DirectoryErrorRowProps = {
  message: string;
  retryLabel: string;
  onRetry: () => void;
};

export function DirectoryErrorRow({
  message,
  retryLabel,
  onRetry,
}: DirectoryErrorRowProps) {
  return (
    <SettingsRow icon={<CircleAlertIcon />} title={message}>
      <Button type="button" variant="outline" size="sm" onClick={onRetry}>
        <RefreshCwIcon aria-hidden="true" />
        {retryLabel}
      </Button>
    </SettingsRow>
  );
}