* 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
27 lines
775 B
TypeScript
27 lines
775 B
TypeScript
import { absolutePathForFocalLength } from '@/app/path';
|
|
import { PhotoSetAttributes } from '../category';
|
|
import ShareModal from '@/share/ShareModal';
|
|
import FocalLengthOGTile from './FocalLengthOGTile';
|
|
import { formatFocalLength, shareTextFocalLength } from '.';
|
|
import { useAppText } from '@/i18n/state/client';
|
|
|
|
export default function FocalLengthShareModal({
|
|
focal,
|
|
photos,
|
|
count,
|
|
dateRange,
|
|
}: {
|
|
focal: number
|
|
} & PhotoSetAttributes) {
|
|
const appText = useAppText();
|
|
return (
|
|
<ShareModal
|
|
pathShare={absolutePathForFocalLength(focal, true)}
|
|
navigatorTitle={formatFocalLength(focal)}
|
|
socialText={shareTextFocalLength(focal, appText)}
|
|
>
|
|
<FocalLengthOGTile {...{ focal, photos, count, dateRange }} />
|
|
</ShareModal>
|
|
);
|
|
};
|