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
20 lines
491 B
TypeScript
20 lines
491 B
TypeScript
import React, { ReactNode } from 'react';
|
|
import classNames from 'classnames';
|
|
import { Header, as } from 'folds';
|
|
import * as css from './styles.css';
|
|
|
|
export type NavCategoryHeaderProps = {
|
|
children: ReactNode;
|
|
};
|
|
export const NavCategoryHeader = as<'div', NavCategoryHeaderProps>(
|
|
({ className, ...props }, ref) => (
|
|
<Header
|
|
className={classNames(css.NavCategoryHeader, className)}
|
|
variant="Background"
|
|
size="300"
|
|
{...props}
|
|
ref={ref}
|
|
/>
|
|
),
|
|
);
|