import React, { useContext } from 'react' import { usePrefix, usePosition } from '../hooks' import { Layout } from '../containers' import cls from 'classnames' export interface IStudioPanelProps { style?: React.CSSProperties className?: string logo?: React.ReactNode actions?: React.ReactNode prefixCls?: string theme?: string position?: React.ComponentProps['position'] } const StudioPanelInternal: React.FC = ({ logo, actions, ...props }) => { const prefix = usePrefix('main-panel') const position = usePosition() const classNameBase = cls('root', position, props.className) if (logo || actions) { return (
{logo}
{actions}
{props.children}
) } return (
{props.children}
) } export const StudioPanel: React.FC = (props) => { return ( ) }