import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog' import { Drawer, DrawerContent, DrawerTrigger } from '@/components/ui/drawer' import { SMESH_PUBKEY } from '@/constants' import { useScreenSize } from '@/providers/ScreenSizeProvider' import { useState } from 'react' import Username from '../Username' export default function AboutInfoDialog({ children }: { children: React.ReactNode }) { const { isSmallScreen } = useScreenSize() const [open, setOpen] = useState(false) const content = ( <>
Smesh
A user-friendly Nostr client for exploring relay feeds
Made by
Source code:{' '} Git
If you like Smesh, please consider giving it a star ⭐
) if (isSmallScreen) { return ( {children}
{content}
) } return ( {children} {content} ) }