excalidraw/src/components/FixedSideContainer.tsx
Lipis 53994e71e5
Add more ESLint rules and change the formatting scripts (#626)
* Add curly rule in ESLint for consistency

* Fix rules

* More rules

* REturn

* Push

* no else return

* prefer const

* destructing
2020-02-02 18:04:35 +00:00

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>
);
}