excalidraw/src/components/FixedSideContainer.tsx
2020-04-25 15:13:02 +02:00

24 lines
431 B
TypeScript

import "./FixedSideContainer.css";
import React from "react";
type FixedSideContainerProps = {
children: React.ReactNode;
side: "top" | "left" | "right";
className?: string;
};
export function FixedSideContainer({
children,
side,
className,
}: FixedSideContainerProps) {
return (
<div
className={`FixedSideContainer FixedSideContainer_side_${side} ${className}`}
>
{children}
</div>
);
}