mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-07 06:39:52 +02:00
31 lines
698 B
TypeScript
31 lines
698 B
TypeScript
"use client";
|
|
|
|
import { Button } from "@app/components/ui/button";
|
|
import { useTranslations } from "next-intl";
|
|
import { RefreshCw } from "lucide-react";
|
|
|
|
type LauncherRefreshButtonProps = {
|
|
onRefresh: () => void;
|
|
isRefreshing: boolean;
|
|
};
|
|
|
|
export function LauncherRefreshButton({
|
|
onRefresh,
|
|
isRefreshing
|
|
}: LauncherRefreshButtonProps) {
|
|
const t = useTranslations();
|
|
|
|
return (
|
|
<Button
|
|
variant="outline"
|
|
onClick={onRefresh}
|
|
disabled={isRefreshing}
|
|
className="shrink-0"
|
|
>
|
|
<RefreshCw
|
|
className={`size-4 ${isRefreshing ? "animate-spin" : ""}`}
|
|
/>
|
|
</Button>
|
|
);
|
|
}
|