1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import { Icon } from '@proton/components';
5 import { getAppHref } from '@proton/shared/lib/apps/helper';
6 import { APPS } from '@proton/shared/lib/constants';
8 import { usePublicSessionUser } from '../../../store';
13 export const ClosePartialPublicViewButton = ({ className }: Props) => {
14 const { localID } = usePublicSessionUser();
15 const handleClosePartialPublicView = () => {
16 const sharedWithMeUrl = getAppHref('/shared-with-me', APPS.PROTONDRIVE, localID);
17 window.location.assign(sharedWithMeUrl);
24 title={c('Action').t`Close`}
25 onClick={handleClosePartialPublicView}
26 data-testid="public-preview:button:close"
28 <Icon name="cross-big" />