TryGhost/Ghost

View on GitHub
apps/admin-x-design-system/src/global/chrome/DesktopChrome.tsx

Summary

Maintainability
A
3 hrs
Test Coverage
import React from 'react';

export interface DesktopChromeProps {
    children?: React.ReactNode;
}

const DesktopChrome: React.FC<DesktopChromeProps & React.HTMLAttributes<HTMLDivElement>> = ({children, ...props}) => {
    return (
        <div className='flex h-full w-full flex-col px-5' {...props}>
            <div className="h-full w-full overflow-hidden rounded-t-[4px] shadow-sm">
                {children}
            </div>
        </div>
    );
};

export default DesktopChrome;