8 lines
365 B
TypeScript
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;
|
|
}
|