import classnames from "classnames"; import { INatIconButton } from "components/SharedComponents"; import React from "react"; import useTranslation from "sharedHooks/useTranslation"; import { getShadow } from "styles/global"; const DROP_SHADOW = getShadow( ); interface Props { currentLocationButtonClassName?: string; onPress: () => void; showCurrentLocationButton?: boolean; renderPermissionsGate: () => React.JSX.Element; } const CurrentLocationButton = ( { currentLocationButtonClassName, onPress, showCurrentLocationButton, renderPermissionsGate }: Props ) => { const { t } = useTranslation( ); return showCurrentLocationButton && ( <> {renderPermissionsGate( )} ); }; export default CurrentLocationButton;