61a1f008d0
- i18next 23->26 + react-i18next 15->17 - prettier 2->3, reformat all files - replace @fontsource/inter with @fontsource-variable/inter 5, update import path - domhandler 5->6 (aligns with transitive deps) - lint-staged 16->17
19 lines
443 B
TypeScript
19 lines
443 B
TypeScript
import React, { ReactNode } from 'react';
|
|
import { Box, as } from 'folds';
|
|
import * as css from './layout.css';
|
|
|
|
type CompactLayoutProps = {
|
|
before?: ReactNode;
|
|
};
|
|
|
|
export const CompactLayout = as<'div', CompactLayoutProps>(
|
|
({ before, children, ...props }, ref) => (
|
|
<Box gap="200" {...props} ref={ref}>
|
|
<Box className={css.CompactHeader} gap="200" shrink="No">
|
|
{before}
|
|
</Box>
|
|
{children}
|
|
</Box>
|
|
),
|
|
);
|