A free, open source, and extensible speech-to-text application that works completely offline.
import React from "react";
import { useTranslation } from "react-i18next";
import { Button } from "./Button";
interface PathDisplayProps {
path: string;
onOpen: () => void;
disabled?: boolean;
}
export const PathDisplay: React.FC<PathDisplayProps> = ({
path,
onOpen,
disabled = false,
}) => {
const { t } = useTranslation();
return (
<div className="flex items-center gap-2">
<div className="flex-1 min-w-0 px-2 py-2 bg-wash border border-line-strong rounded-lg text-xs font-mono break-all select-text cursor-text">
{path}
</div>
<Button
onClick={onOpen}
variant="secondary"
size="sm"
disabled={disabled}
className="px-3 py-2"
>
{t("common.open")}
</Button>
</div>
);
};