2024-11-07 16:56:26 +01:00

47 lines
1.9 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/restrict-template-expressions */
import { Item } from '../../../types'
import { TextView } from '../../Map'
import { ContactInfoView } from '../Subcomponents/ContactInfoView'
import { GroupSubHeaderView } from '../Subcomponents/GroupSubHeaderView'
export const OnepagerView = ({ item }: { item: Item }) => {
return (
<div className='tw-h-full tw-overflow-y-auto fade'>
<GroupSubHeaderView
item={item}
share_base_url={`https://www.wuerdekompass.org/aktivitaeten/gruppensuche/#/gruppe/${item.slug}`}
/>
{item.user_created.first_name && <ContactInfoView heading='Du hast Fragen?' item={item} />}
{/* Description Section */}
<div className='tw-my-10 tw-mt-2 tw-px-6 tw-text-sm '>
<TextView rawText={item.text || 'Keine Beschreibung vorhanden'} />
</div>
{/* Next Appointment Section */}
{item.next_appointment && (
<div className='tw-my-10 tw-px-6'>
<h2 className='tw-text-lg tw-font-semibold'>Nächste Termine</h2>
<div className='tw-mt-2 tw-text-sm'>
<TextView rawText={item.next_appointment} />
</div>
</div>
)}
;{/* Relations Section */}
{/* {d.relations && ( */}
{/* <div className="tw-my-10 tw-px-6"> */}
{/* <h2 className="tw-text-lg tw-font-semibold tw-mb-4">Projekte</h2> */}
{/* {d.relations.map((project, index) => ( */}
{/* <RelationCard */}
{/* key={index} */}
{/* title={project.title} */}
{/* description={project.description} */}
{/* imageSrc={project.imageSrc} */}
{/* /> */}
{/* ))} */}
{/* </div> */}
{/* )} */}
</div>
)
}