53994e71e5
* Add curly rule in ESLint for consistency * Fix rules * More rules * REturn * Push * no else return * prefer const * destructing
20 lines
372 B
TypeScript
20 lines
372 B
TypeScript
import "./FixedSideContainer.css";
|
|
|
|
import React from "react";
|
|
|
|
type FixedSideContainerProps = {
|
|
children: React.ReactNode;
|
|
side: "top" | "left" | "right";
|
|
};
|
|
|
|
export function FixedSideContainer({
|
|
children,
|
|
side,
|
|
}: FixedSideContainerProps) {
|
|
return (
|
|
<div className={`FixedSideContainer FixedSideContainer_side_${side}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|