excalidraw/src/components/FixedSideContainer.tsx

20 lines
372 B
TypeScript
Raw Normal View History

import "./FixedSideContainer.css";
import React from "react";
type FixedSideContainerProps = {
children: React.ReactNode;
side: "top" | "left" | "right";
};
export function FixedSideContainer({
children,
2020-01-24 12:04:54 +02:00
side,
}: FixedSideContainerProps) {
return (
<div className={`FixedSideContainer FixedSideContainer_side_${side}`}>
{children}
</div>
);
}