excalidraw/src/components/FixedSideContainer.tsx

24 lines
431 B
TypeScript
Raw Normal View History

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