2022-07-19 18:25:11 +00:00
|
|
|
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 (
|
2022-07-20 11:26:34 +00:00
|
|
|
<form>
|
|
|
|
<ViewContent
|
|
|
|
title={<div style={{ padding: "10px" }}>
|
|
|
|
{data.name}
|
|
|
|
</div>}
|
|
|
|
content={<div>
|
|
|
|
<FestaMarkdownRenderer code={data.description} />
|
|
|
|
</div>}
|
|
|
|
/>
|
|
|
|
</form>
|
2022-07-19 18:25:11 +00:00
|
|
|
)
|
|
|
|
})
|
|
|
|
EventsActionView.displayName = "EventsActionView"
|