mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 02:52:12 +00:00
26 lines
496 B
TypeScript
26 lines
496 B
TypeScript
import { useState } from "react";
|
|
|
|
interface LowerPanelPropsI {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const LowerPanel = ({ children }: LowerPanelPropsI) => {
|
|
const [open, setOpen] = useState(false);
|
|
const handleOpen = () => {
|
|
setOpen(true);
|
|
};
|
|
|
|
return (
|
|
<div
|
|
className={[
|
|
"absolute bottom-0",
|
|
"h-[260px] w-screen overflow-auto",
|
|
"border-t border-ui-panel-border",
|
|
"bg-ui-panel",
|
|
].join(" ")}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|