import { __ } from "@wordpress/i18n";
import cacheAutopilotLogo from "../../../images/ca-logo.svg";

export const getProductBranding = () => ({
    logoAlt: __("Cache Autopilot", "cache-autopilot"),
    logoSrc: cacheAutopilotLogo,
});

export const buildFeatureSettingsPayload = ({ timedInvalidation }) => ({
    timed_invalidation: timedInvalidation || {},
});

export const buildFeatureSettingsResetPayload = ({ timedInvalidation }) => ({
    timed_invalidation: timedInvalidation || {},
});

const noop = () => {};
const loadFeatureSettings = async () => null;
const saveFeatureSettings = async () => ({ ok: true });
const settingsTabProps = {};

export const useFeatureSettingsLifecycle = () => ({
    isDirty: false,
    loadFeatureSettings,
    handleFeatureSettingsLoaded: noop,
    handleFeatureSettingsLoadError: noop,
    saveFeatureSettings,
    settingsTabProps,
});

export const TimedInvalidationSlot = () => null;

export const MultilingualFanoutSlot = () => null;

export const AccessControlSlot = () => null;

export const ContentRelationshipsSectionSlot = () => null;

export const PostTypeExpansionSectionSlot = () => null;
