import * as React from 'react';
import { rule } from 'nano-theme';
import { TopToolbar } from '../TopToolbar';
import { usePlugin } from '../context';
const blockClass = rule({
    bg: 'white',
    bxz: 'border-box',
    bdrad: '16px',
    pad: '24px 32px',
    lh: '1.7em',
    bxsh: '0 1px 8px #00000008,0 1px 4px #0000000a,0 4px 10px #0000000f',
    '&:hover': {
        bxsh: '0 1px 8px #00000008,0 1px 4px #0000000a,0 4px 10px #0000000f,0 0 3px #0000001f',
    },
});
export const Chrome = ({ children }) => {
    const { ctx } = usePlugin();
    return (React.createElement("div", { className: blockClass },
        !!ctx && React.createElement(TopToolbar, { ctx: ctx }),
        children));
};
//# sourceMappingURL=index.js.map