Interface Props<TQuerySchema, TCollectionMutationSchema>

Props for DeleteControl.

interface Props<TQuerySchema, TCollectionMutationSchema> {
    withMutation: IWithMutation<TCollectionMutationSchema, ZodOptional<ZodNullable<ZodObject<{}, "strip", ZodTypeAny, {}, {}>>>>;
    withQueryStore: Store<TQuerySchema>;
    text: {
        content: ReactNode;
        submit: ReactNode;
    };
}

Type Parameters

Properties

withMutation: IWithMutation<TCollectionMutationSchema, ZodOptional<ZodNullable<ZodObject<{}, "strip", ZodTypeAny, {}, {}>>>>

Mutation used to delete collection items.

withQueryStore: Store<TQuerySchema>

Query store used to fetch query used to delete collection items.

text: {
    content: ReactNode;
    submit: ReactNode;
}

Text used in the control.

Type declaration

  • content: ReactNode

    Content text.

  • submit: ReactNode

    Submit text.