excalidraw/src/components/FixedSideContainer.tsx

27 lines
467 B
TypeScript
Raw Normal View History

import "./FixedSideContainer.scss";
import React from "react";
import clsx from "clsx";
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={clsx(
"FixedSideContainer",
`FixedSideContainer_side_${side}`,
className,
)}
>
{children}
</div>
);