add lead and body to /lokaler
This commit is contained in:
15
web/src/components/blocks/AccordionBlock.tsx
Normal file
15
web/src/components/blocks/AccordionBlock.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { AccordionBlock as AccordionBlockType } from "@/gql/graphql";
|
||||
import { Blocks } from "./Blocks";
|
||||
import { Accordion } from "./Accordion";
|
||||
|
||||
export const AccordionBlock = ({
|
||||
block,
|
||||
}: {
|
||||
block: AccordionBlockType;
|
||||
}) => {
|
||||
return (
|
||||
<Accordion heading={block.heading}>
|
||||
<Blocks blocks={block.body} />
|
||||
</Accordion>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user