2020-01-15 20:42:02 +05:00
|
|
|
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,
|
2020-01-15 20:42:02 +05:00
|
|
|
}: FixedSideContainerProps) {
|
|
|
|
return (
|
|
|
|
<div className={"FixedSideContainer FixedSideContainer_side_" + side}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|