@mui/x-data-grid-premium
Version:
The Premium plan edition of the MUI X Data Grid Components.
16 lines • 577 B
TypeScript
import * as React from 'react';
export interface PromptFieldState {
value: string;
disabled: boolean;
recording: boolean;
}
export interface PromptFieldContextValue {
state: PromptFieldState;
lang: string | undefined;
onValueChange: (value: string) => void;
onRecordingChange: (recording: boolean) => void;
onSubmit: (prompt: string) => void;
onError: ((error: string) => void) | undefined;
}
export declare const PromptFieldContext: React.Context<PromptFieldContextValue | undefined>;
export declare function usePromptFieldContext(): PromptFieldContextValue;