mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import dynamic from 'next/dynamic';
|
|
|
|
import type { HeaderProps } from '~/containers/main/Header/index';
|
|
|
|
import styles from './styles.module.scss';
|
|
|
|
export const HeaderSSR = dynamic<HeaderProps>(
|
|
() => import('./index').then((it) => it.Header),
|
|
{
|
|
ssr: false,
|
|
loading: () => <div className={styles.wrap} />,
|
|
},
|
|
);
|
|
|
|
export const HeaderSSRPlaceholder = () => <div className={styles.wrap} />;
|