@prezly/theme-kit-core
Version:
Data layer and utility library for developing Prezly themes with JavaScript
9 lines (8 loc) • 772 B
TypeScript
import type { NewsroomCompanyInformation } from '@prezly/sdk';
type CompanySocialMediaInformation = Pick<NewsroomCompanyInformation, 'facebook' | 'instagram' | 'linkedin' | 'pinterest' | 'tiktok' | 'twitter' | 'youtube'>;
type CompanyAboutInformation = CompanySocialMediaInformation & Pick<NewsroomCompanyInformation, 'about' | 'website'>;
type CompanyContactInformation = Pick<NewsroomCompanyInformation, 'address' | 'phone' | 'email' | 'website'>;
export declare function hasAnySocialMedia(companyInformation: CompanySocialMediaInformation): boolean;
export declare function hasAnyAboutInformation(companyInformation: CompanyAboutInformation): boolean;
export declare function hasAnyContactInformation(companyInformation: CompanyContactInformation): boolean;
export {};