import React, { FC, ReactNode } from "react"; import { IconChevronLeft, IconGripVertical } from "@tabler/icons-react"; import { Box, Center, Divider, Group, Text } from "@mantine/core"; import CreateStatusButton from "@/app/deals/drawers/StatusesMobileEditorDrawer/components/CreateStatusButton"; import StatusMobile from "@/app/deals/drawers/StatusesMobileEditorDrawer/components/StatusMobile"; import { useStatusesMobileContext } from "@/app/deals/drawers/StatusesMobileEditorDrawer/contexts/BoardStatusesContext"; import SortableDnd from "@/components/dnd/SortableDnd"; import { StatusSchema } from "@/lib/client"; type Props = { onClose: () => void; }; const StatusesDrawerBody: FC = ({ onClose }) => { const { statusesCrud, board, statuses } = useStatusesMobileContext(); const renderDraggable = () => ( ); const renderStatus = ( status: StatusSchema, renderDraggable?: (item: StatusSchema) => ReactNode ) => { return ( {renderDraggable && renderDraggable(status)} ); }; const onDragEnd = (itemId: number, newLexorank: string) => statusesCrud.onUpdate(itemId, { lexorank: newLexorank }); return ( <>
{board.name}
); }; export default StatusesDrawerBody;