Vercel/src/photo/PhotoShareModal.tsx
Sam Becker 646f32e642
Rich sort controls (#283)
* Generalize app switcher menus

* Organize sort module

* Build configuration for nav sort control

* Refine sort menu styles

* Upgrade next.js

* Reset custom sort when clicking grid/full a second time

* Light up sort button when overridden
2025-07-15 22:43:36 -05:00

20 lines
558 B
TypeScript

import PhotoOGTile from '@/photo/PhotoOGTile';
import { absolutePathForPhoto } from '@/app/path';
import { Photo, titleForPhoto } from '.';
import { PhotoSetCategory } from '../category';
import ShareModal from '@/share/ShareModal';
export default function PhotoShareModal(
props: { photo: Photo } & PhotoSetCategory,
) {
return (
<ShareModal
pathShare={absolutePathForPhoto(props, true)}
navigatorTitle={titleForPhoto(props.photo)}
socialText="Check out this photo"
>
<PhotoOGTile {...props} />
</ShareModal>
);
}