1 import type { FC } from 'react';
3 import { c } from 'ttag';
5 import { PrimaryButton } from '@proton/components';
6 import noLinksSvg from '@proton/styles/assets/img/illustrations/empty-shared.svg';
8 import { DriveEmptyView } from '../../layout/DriveEmptyView';
9 import { useFileSharingModal } from '../../modals/SelectLinkToShareModal/SelectLinkToShareModal';
10 import { useLinkSharingModal } from '../../modals/ShareLinkModal/ShareLinkModal';
16 const EmptyShared: FC<Props> = ({ shareId }) => {
17 const [fileSharingModal, showFileSharingModal] = useFileSharingModal();
18 const [linkSharingModal, showLinkSharingModal] = useLinkSharingModal();
20 const onShareFile = () => {
22 void showFileSharingModal({ shareId, showLinkSharingModal });
30 // translator: Shown on empty Shared page
31 c('Info').t`Share files with links`
34 // translator: Shown on empty Shared page
35 c('Info').t`Create links and share your files with others.`
37 dataTestId="shared-links-empty-placeholder"
39 <div className="flex justify-center">
42 className="text-bold w-custom"
43 style={{ '--w-custom': '13em' }}
46 {c('Action').t`Share file`}
55 export default EmptyShared;