excalidraw/src/components/FixedSideContainer.tsx

22 lines
410 B
TypeScript
Raw Normal View History

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