advanced frontend also being managed by 2.0

This commit is contained in:
2024-09-20 15:07:18 -06:00
parent dd0a6cb446
commit 345995bf2c
4 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
import React, { ReactNode } from "react";
import { useDraggingContext } from "../app/course/[courseName]/context/draggingContext";
export default function DropTargetStyling({
children,
draggingClassName,
}: {
children: ReactNode;
draggingClassName: string;
}) {
const { isDragging } = useDraggingContext();
return (
<div
className={
"h-full transition-all duration-500 " +
(isDragging ? draggingClassName : "")
}
>
{children}
</div>
);
}