Files
formbricks/apps/web/modules/ui/components/reset-progress-button/index.tsx
T
Dhruwang Jariwala 36378e9c23 feat: tolgee (#4692)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
2025-02-07 05:49:35 +00:00

24 lines
598 B
TypeScript

"use client";
import { Button } from "@/modules/ui/components/button";
import { useTranslate } from "@tolgee/react";
import { Repeat2 } from "lucide-react";
interface ResetProgressButtonProps {
onClick: () => void;
}
export const ResetProgressButton = ({ onClick }: ResetProgressButtonProps) => {
const { t } = useTranslate();
return (
<Button
type="button"
variant="ghost"
className="mr-2 h-fit bg-white px-2 py-0 font-sans text-sm text-slate-500"
onClick={onClick}>
{t("common.restart")}
<Repeat2 className="ml-2 h-4 w-4" />
</Button>
);
};