import { getUpsellURL } from "@/lib/utils";
import TextareaControl from "@/pages/settings/controls/TextareaControl";
import ToggleControl from "@/pages/settings/controls/ToggleControl";
import { __ } from "@wordpress/i18n";
import { Crown } from "lucide-react";
const ProBadge = ({ utmCampaign = 'pro-tag' }: { utmCampaign?: string }) => {
return (
{__('Pro', 'wp-cloudflare-page-cache')}
);
}
type DummyControlProps = {
type: 'textarea' | 'toggle';
id: string;
label?: string | React.ReactNode;
description?: string | React.ReactNode;
utmCampaign?: string;
placeholder?: string;
}
const DummyControl = ({ type, id, label = "", description = "", utmCampaign = '', placeholder = '' }: DummyControlProps) => {
const handleChange = (nextValue: boolean | string, id?: string) => { }
if (type === 'textarea') {
return (
{label}
}
value=""
disabled
description={description}
onChange={handleChange}
locked
/>
);
}
if (type === 'toggle') {
return (
{label}
}
description={description}
value={false}
onChange={handleChange}
locked
/>
);
}
return null;
}
export default DummyControl;