Vercel/src/photo/SharePhotoButton.tsx
2023-09-21 18:20:56 -05:00

26 lines
544 B
TypeScript

import { Photo } from '.';
import { pathForPhotoShare } from '@/site/paths';
import { TbPhotoShare } from 'react-icons/tb';
import IconPathButton from '@/components/IconPathButton';
export default function SharePhotoButton({
photo,
tag,
prefetch,
shouldScroll,
}: {
photo: Photo
tag?: string
prefetch?: boolean
shouldScroll?: boolean
}) {
return (
<IconPathButton
icon={<TbPhotoShare size={17} />}
path={pathForPhotoShare(photo, tag)}
prefetch={prefetch}
shouldScroll={shouldScroll}
/>
);
}