import { Section } from '../db'; import { Campaign } from '../db/schemas/campaigns-config-schema'; import { MixedSection } from '../state'; /** * Takes a section and a map or object of campaigns and returns a true if the section is currently * active and false if it is not. * * @example * ```tsx * const campaignsConfig = await CampaignsConfig.findOneBy({ agency: agency }); * const serializableCampaignsConfig = JSON.parse(JSON.stringify(campaignsConfig)); * * const isActive = isSectionActive(section, serializableCampaignsConfig.campaigns); * ``` */ export default function isSectionActive(section: Section, campaigns: { [key: string]: Campaign; }): boolean; //# sourceMappingURL=is-section-active.d.ts.map