import { PropsWithChildren, createContext, useContext } from 'react'; import clsx from 'clsx'; import styles from './HeaderContainer.module.css'; const Context = createContext(null); export function useHeaderContext() { const context = useContext(Context); if (context == null) { throw new Error('Should be nested inside a HeaderContainer component'); } } export function HeaderContainer({ children }: PropsWithChildren) { return (
{children}
); }