LibraryMenuControlButtons.tsx 731 B

123456789101112131415161718192021222324252627282930313233
  1. import type { ExcalidrawProps, UIAppState } from "../types";
  2. import LibraryMenuBrowseButton from "./LibraryMenuBrowseButton";
  3. import clsx from "clsx";
  4. export const LibraryMenuControlButtons = ({
  5. libraryReturnUrl,
  6. theme,
  7. id,
  8. style,
  9. children,
  10. className,
  11. }: {
  12. libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
  13. theme: UIAppState["theme"];
  14. id: string;
  15. style: React.CSSProperties;
  16. children?: React.ReactNode;
  17. className?: string;
  18. }) => {
  19. return (
  20. <div
  21. className={clsx("library-menu-control-buttons", className)}
  22. style={style}
  23. >
  24. <LibraryMenuBrowseButton
  25. id={id}
  26. libraryReturnUrl={libraryReturnUrl}
  27. theme={theme}
  28. />
  29. {children}
  30. </div>
  31. );
  32. };