Props for the ApiCredentialsForm component

interface ApiCredentialsFormProps {
    form: UseFormReturn<
        {
            clientId: string;
            clientSecret: string;
            redirectUri: string;
            fileLogLevel: "DEBUG"
            | "INFO"
            | "WARNING"
            | "ERROR"
            | "CRITICAL";
            logLineCount: number;
            maxLogFiles: number;
            logRetentionDays: number;
            skipThreshold: number;
            timeframeInDays: number;
            autoStartMonitoring: boolean;
            autoUnlike: boolean;
            pollingInterval: number;
        },
    >;
    setSettingsChanged: (changed: boolean) => void;
}

Properties

form: UseFormReturn<
    {
        clientId: string;
        clientSecret: string;
        redirectUri: string;
        fileLogLevel: "DEBUG"
        | "INFO"
        | "WARNING"
        | "ERROR"
        | "CRITICAL";
        logLineCount: number;
        maxLogFiles: number;
        logRetentionDays: number;
        skipThreshold: number;
        timeframeInDays: number;
        autoStartMonitoring: boolean;
        autoUnlike: boolean;
        pollingInterval: number;
    },
>

React Hook Form instance with Zod schema typing

setSettingsChanged: (changed: boolean) => void

Callback to notify parent component of changes