
* Redisign idea * Code cleanup * Fixed to right container * Reoredered layout * Reordering panels * Export dialog * Removed redunant code * Fixed not removing temp canvas * Fixed preview not using only selected elements * Returned file name on export * Toggle export selected/all elements * Hide copy to clipboard button if no support of clipboard * Added border to swatches * Fixed modal flickering
20 lines
371 B
TypeScript
20 lines
371 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>
|
|
);
|
|
}
|