import React from "react"; import styled from "styled-components"; import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; import Element, { ElementWrapper } from "./element"; import Link from "next/link"; import { motion } from "framer-motion"; const ChapterWrapper = styled.div` margin-bottom: 5px; padding: 11px; background-color: #00000010; width: 310px; display: block; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.19); box-shadow: 0px 13px 33px -13px rgb(0 0 0 / 12%); transition: all 0.2s ease; `; function Chapter(props: any) { return ( {(provided, snapshot) => (

{props.info.list.chapter.name}{" "}

{(provided) => ( {props.info.list.elements.map((element: any, index: any) => ( ))} {provided.placeholder} )}
)}
); } const ElementsList = styled.div` padding: 10px; `; export default Chapter;