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