import { Outlet } from 'react-router-dom';

export function Centered() {
  return (
    <div
      style={{
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        minHeight: '100dvh',
        padding: '1.5rem',
        background: 'var(--d-bg)',
      }}
    >
      <div
        className="d-surface"
        style={{
          width: '100%',
          maxWidth: '26rem',
          borderRadius: 'var(--d-radius-lg)',
          padding: '2rem',
        }}
      >
        <Outlet />
      </div>
    </div>
  );
}
