A free, open source, and extensible speech-to-text application that works completely offline.
import React from "react";
import ResetIcon from "../icons/ResetIcon";
interface ResetButtonProps {
onClick: () => void;
disabled?: boolean;
className?: string;
ariaLabel?: string;
children?: React.ReactNode;
}
export const ResetButton: React.FC<ResetButtonProps> = React.memo(
({ onClick, disabled = false, className = "", ariaLabel, children }) => (
<button
type="button"
aria-label={ariaLabel}
className={`p-1 rounded-md border border-transparent transition-all duration-150 ${
disabled
? "opacity-50 cursor-not-allowed text-ink-3"
: "hover:bg-logo-primary/20 active:bg-logo-primary/50 active:translate-y-[1px] hover:cursor-pointer hover:border-logo-primary text-text"
} ${className}`}
onClick={onClick}
disabled={disabled}
>
{children ?? <ResetIcon />}
</button>
),
);