/* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ import SocialShareBar from './SocialShareBar' /* const flags = { de: ( ), at: ( ) }; */ const statusMapping = { in_planning: 'in Planung', paused: 'pausiert', active: 'aktiv', } // eslint-disable-next-line react/prop-types const SubHeader = ({ type, status, url, title }) => (
{status && (
{statusMapping[status]}
)} {type && (
{type}
)}
) export default SubHeader