You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
726 B
TypeScript
34 lines
726 B
TypeScript
2 years ago
|
import { ExcalidrawProps, UIAppState } from "../types";
|
||
2 years ago
|
import LibraryMenuBrowseButton from "./LibraryMenuBrowseButton";
|
||
2 years ago
|
import clsx from "clsx";
|
||
2 years ago
|
|
||
|
export const LibraryMenuControlButtons = ({
|
||
|
libraryReturnUrl,
|
||
|
theme,
|
||
|
id,
|
||
|
style,
|
||
2 years ago
|
children,
|
||
|
className,
|
||
2 years ago
|
}: {
|
||
|
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
|
||
2 years ago
|
theme: UIAppState["theme"];
|
||
2 years ago
|
id: string;
|
||
|
style: React.CSSProperties;
|
||
2 years ago
|
children?: React.ReactNode;
|
||
|
className?: string;
|
||
2 years ago
|
}) => {
|
||
|
return (
|
||
2 years ago
|
<div
|
||
|
className={clsx("library-menu-control-buttons", className)}
|
||
|
style={style}
|
||
|
>
|
||
2 years ago
|
<LibraryMenuBrowseButton
|
||
|
id={id}
|
||
|
libraryReturnUrl={libraryReturnUrl}
|
||
|
theme={theme}
|
||
|
/>
|
||
2 years ago
|
{children}
|
||
2 years ago
|
</div>
|
||
|
);
|
||
|
};
|