import type { BaseTabProps } from "../types"; import { HighlightableField } from "../../components/HighlightableField"; export interface AdvancedTabProps extends BaseTabProps { showUninstallCleanup?: boolean; } type AdvancedUninstallCleanupFieldProps = Pick< BaseTabProps, "settings" | "setSettings" >; export function AdvancedUninstallCleanupField({ settings, setSettings, }: AdvancedUninstallCleanupFieldProps) { return (

Uninstall Cleanup

By default we keep swatch settings, per-product overrides, and term meta when the plugin is uninstalled. Enable this to remove them and reset attribute types back to WooCommerce selects.

Developers can also force cleanup in code via the{" "} b3wvs_uninstall_remove_data filter.

); } export function AdvancedTab({ settings, setSettings, adminColor: _adminColor, showUninstallCleanup = true, }: AdvancedTabProps) { return (

Advanced

{showUninstallCleanup ? ( ) : null}
); }