import { __ } from "@wordpress/i18n"; import { ConfigPreviewProperty } from "./types"; interface ConfigInformationEntityCardProps { title: string; badge?: string; properties: ConfigPreviewProperty[]; } export const ConfigInformationEntityCard = ({ title, badge, properties, }: ConfigInformationEntityCardProps) => { const isComplete = properties.length > 0 && properties.every((property) => property.isSet); return (
{badge ? ( {badge} ) : null}

{title}

{properties.map((property) => (
{property.label}
{property.value ?? __("Not set yet", "webba-booking-lite")}
))}
); };