Website for showcasing all features of Tesseract Web.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
552 B

  1. import Head from 'next/head';
  2. import { FC } from 'react';
  3. type DefaultLayoutProps = {
  4. title?: string,
  5. appName?: string,
  6. }
  7. export const DefaultLayout: FC<DefaultLayoutProps> = ({
  8. title,
  9. appName = 'Tesseract Web (React)',
  10. children,
  11. }) => {
  12. return (
  13. <>
  14. <Head>
  15. <title>
  16. {title ? `${title} | ${appName}` : appName}
  17. </title>
  18. {
  19. title
  20. && (
  21. <meta name="display-title" className="block" content={title} />
  22. )
  23. }
  24. </Head>
  25. {children}
  26. </>
  27. )
  28. }