/* eslint-disable @typescript-eslint/no-unsafe-assignment */ import { ContactInfoView } from '#components/Profile/Subcomponents/ContactInfoView' import { CrowdfundingView } from '#components/Profile/Subcomponents/CrowdfundingView' import { GalleryView } from '#components/Profile/Subcomponents/GalleryView' import { GroupSubHeaderView } from '#components/Profile/Subcomponents/GroupSubHeaderView' import { ProfileStartEndView } from '#components/Profile/Subcomponents/ProfileStartEndView' import { ProfileTextView } from '#components/Profile/Subcomponents/ProfileTextView' import type { Item } from '#types/Item' import type { Key } from 'react' const componentMap = { groupSubheaders: GroupSubHeaderView, texts: ProfileTextView, contactInfos: ContactInfoView, startEnd: ProfileStartEndView, gallery: GalleryView, crowdfundings: CrowdfundingView, // weitere Komponenten hier } export const FlexView = ({ item }: { item: Item }) => { // eslint-disable-next-line no-console console.log(item) return (