mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-20 19:30:41 -05:00
36378e9c23
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
24 lines
598 B
TypeScript
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>
|
|
);
|
|
};
|