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