import { css, cx } from "@emotion/css"; import React, { PropsWithChildren, Ref } from "react"; import ReactDOM from "react-dom"; interface BaseProps { className?: string; [key: string]: unknown; } export const Button = React.forwardRef< HTMLSpanElement, PropsWithChildren<{ active: boolean; reversed: boolean } & BaseProps> >(({ className, active, reversed, ...props }, ref) => ( )); export const Icon = React.forwardRef< HTMLSpanElement, PropsWithChildren >(({ className, ...props }, ref) => ( )); export const Menu = React.forwardRef< HTMLDivElement, PropsWithChildren >(({ className, ...props }, ref) => { return (
* { display: inline-block; } & > * + * { margin-left: 15px; } `, )} /> ); }); export const Portal = ({ children }: { children: React.ReactNode }) => { return typeof document === "object" ? ReactDOM.createPortal(children, document.body) : null; }; export const Toolbar = React.forwardRef< HTMLDivElement, PropsWithChildren >(({ className, ...props }, ref) => ( ));