diff --git a/src/components/MapPage/LetterInfoContainer/LetterInfoContainer.tsx b/src/components/MapPage/LetterInfoContainer/LetterInfoContainer.tsx index 9f57970a..cbdf421d 100644 --- a/src/components/MapPage/LetterInfoContainer/LetterInfoContainer.tsx +++ b/src/components/MapPage/LetterInfoContainer/LetterInfoContainer.tsx @@ -1,3 +1,4 @@ +import { BottleLetter } from '@/components/Common/BottleLetter/BottleLetter'; import { NavLink } from 'react-router-dom'; type LetterInfoContainerProps = { @@ -8,6 +9,7 @@ type LetterInfoContainerProps = { daysLeft: number; lat: number; lot: number; + label: string; }; export const LetterInfoContainer = ({ @@ -17,15 +19,17 @@ export const LetterInfoContainer = ({ date, daysLeft, lat, - lot + lot, + label }: LetterInfoContainerProps) => { const limitDistance = parseFloat(distance) <= 15; + const Letter = { label }; return (