peppa/apps/web/components/Dictate.tsx
2026-11-15 21:43:49 +05:00

8 lines
365 B
TypeScript

// PEP-108: the microphone for a text field, only where the server has speech to text.
import { voiceStoriesEnabled } from "@peppa/shared";
import { DictateButton } from "@/components/DictateButton";
export function Dictate(props: { target: string; className?: string; compact?: boolean }) {
return voiceStoriesEnabled() ? <DictateButton {...props} /> : null;
}