mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 15:14:23 +00:00
24 lines
653 B
TypeScript
24 lines
653 B
TypeScript
|
import { Event } from "@prisma/client"
|
||
|
import { memo } from "react"
|
||
|
import { FestaMarkdownRenderer } from "../../generic/renderers/markdown"
|
||
|
import { ViewContent } from "../../generic/views/content"
|
||
|
|
||
|
|
||
|
export type EventsActionViewProps = {
|
||
|
data: Event,
|
||
|
}
|
||
|
|
||
|
|
||
|
export const EventsActionView = memo(({ data }: EventsActionViewProps) => {
|
||
|
return (
|
||
|
<ViewContent
|
||
|
title={<div style={{ padding: "10px" }}>
|
||
|
{data.name}
|
||
|
</div>}
|
||
|
content={<div>
|
||
|
<FestaMarkdownRenderer code={data.description} />
|
||
|
</div>}
|
||
|
/>
|
||
|
)
|
||
|
})
|
||
|
EventsActionView.displayName = "EventsActionView"
|