VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.
Python aiaudiobookcudadubbingelevenlabs-alternativehuggingfacelocal-firstmlxomnivoice-studiospeech-to-texttext-to-speechtranscriptiontranslatettsvoice-aivoice-cloningvoice-generationvoicestudioworkflow
import React from 'react';
import { Info } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { Tooltip } from '../../../ui';
import { openExternal } from '../../../api/external';
/**
* InfoHint — a small info affordance that moves long prose OUT of the row body
* and into an on-demand tooltip. Renders a 13px lucide `Info` glyph (dim) that
* opens the shared Tooltip with the help content; an optional "Learn more →"
* link opens an external URL via the app's external-open helper.
*
* Use this anywhere the old design had a multi-line `<p className="…__help">`.
*
* @param {ReactNode} children the help prose shown inside the tooltip
* @param {string=} label accessible label for the trigger (default: "More info")
* @param {string=} learnMoreHref optional URL; renders a "Learn more →" link in the tooltip
*/
export default function InfoHint({ children, label, learnMoreHref }) {
const { t } = useTranslation();
const ariaLabel = label || t('common.more_info', 'More info');
const content = (
<div className="flex flex-col gap-[var(--space-3)] max-w-[260px]">
<div className="[font-family:var(--font-sans)] text-[length:var(--text-base)] leading-[1.5]">
{children}
</div>
{learnMoreHref && (
<button
type="button"
className="self-start p-0 border-0 bg-transparent text-[color:var(--chrome-accent)] [font-family:var(--font-sans)] text-[length:var(--text-base)] font-semibold cursor-pointer hover:underline"
onClick={() => openExternal(learnMoreHref)}
>
{t('common.learn_more', 'Learn more')} →
</button>
)}
</div>
);
return (
<Tooltip content={content} placement="top">
<button
type="button"
className="inline-flex items-center justify-center p-0 m-0 border-0 bg-transparent text-[color:var(--chrome-fg-dim)] cursor-help leading-[0] rounded-[var(--chrome-radius-pill)] transition-[color] duration-[120ms] hover:text-[color:var(--chrome-fg-muted)] focus-visible:text-[color:var(--chrome-fg-muted)] focus-visible:outline-none focus-visible:shadow-[var(--focus-ring)]"
aria-label={ariaLabel}
onClick={(e) => e.preventDefault()}
>
<Info size={13} aria-hidden="true" />
</button>
</Tooltip>
);
}