layout.tsx 557 B

12345678910111213141516171819202122
  1. import React from 'react'
  2. import type { FC } from 'react'
  3. import type { Metadata } from 'next'
  4. import { SharePageContextProvider } from '@/context/share-page-context'
  5. export const metadata: Metadata = {
  6. icons: 'data:,', // prevent browser from using default favicon
  7. }
  8. const Layout: FC<{
  9. children: React.ReactNode
  10. }> = ({ children }) => {
  11. return (
  12. <div className="min-w-[300px] h-full pb-[env(safe-area-inset-bottom)]">
  13. <SharePageContextProvider>
  14. {children}
  15. </SharePageContextProvider>
  16. </div>
  17. )
  18. }
  19. export default Layout