🔧 Cleaned up folder structure

This commit is contained in:
2023-09-11 11:08:33 -04:00
parent 9fe69d21db
commit 8c4027f383
29 changed files with 34 additions and 531 deletions

View File

@@ -0,0 +1,32 @@
import React from "react";
import { useSortable } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
import { Cover } from "./Cover";
export const SortableCover = (props) => {
const sortable = useSortable({ id: props.url });
const {
attributes,
listeners,
isDragging,
setNodeRef,
transform,
transition,
} = sortable;
const style = {
transform: CSS.Transform.toString(transform),
transition,
};
return (
<Cover
ref={setNodeRef}
style={style}
{...props}
{...attributes}
{...listeners}
/>
);
};