2020-09-26 02:48:45 +05:30
|
|
|
import "./FixedSideContainer.scss";
|
2020-01-15 20:42:02 +05:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2020-05-20 16:21:37 +03:00
|
|
|
export const FixedSideContainer = ({
|
2020-01-15 20:42:02 +05:00
|
|
|
children,
|
2020-01-24 12:04:54 +02:00
|
|
|
side,
|
2020-04-25 18:43:02 +05:30
|
|
|
className,
|
2020-05-20 16:21:37 +03:00
|
|
|
}: FixedSideContainerProps) => (
|
|
|
|
<div
|
|
|
|
className={`FixedSideContainer FixedSideContainer_side_${side} ${className}`}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|