2025-03-18 01:43:25 +08:00
|
|
|
import { type BusterShare, ShareAssetType } from '@/api/asset_interfaces';
|
|
|
|
import React from 'react';
|
2025-03-04 13:10:36 +08:00
|
|
|
import { ShareMenuTopBarOptions } from './ShareMenuTopBar';
|
2025-01-31 07:29:06 +08:00
|
|
|
import { ShareMenuContentBody } from './ShareMenuContentBody';
|
|
|
|
|
|
|
|
export const ShareMenuContent: React.FC<{
|
|
|
|
shareAssetConfig: BusterShare;
|
|
|
|
assetId: string;
|
2025-02-01 02:04:49 +08:00
|
|
|
assetType: ShareAssetType;
|
2025-03-04 13:10:36 +08:00
|
|
|
onCopyLink: () => void;
|
|
|
|
setOpenShareWithGroupAndTeam: (open: boolean) => void;
|
|
|
|
goBack: () => void;
|
|
|
|
selectedOptions: ShareMenuTopBarOptions;
|
|
|
|
}> = React.memo(
|
|
|
|
({
|
|
|
|
assetId,
|
|
|
|
assetType,
|
|
|
|
shareAssetConfig,
|
|
|
|
selectedOptions,
|
|
|
|
onCopyLink,
|
|
|
|
setOpenShareWithGroupAndTeam,
|
|
|
|
goBack
|
|
|
|
}) => {
|
|
|
|
return (
|
|
|
|
<div className="min-w-[320px]">
|
|
|
|
<ShareMenuContentBody
|
|
|
|
shareAssetConfig={shareAssetConfig}
|
|
|
|
assetType={assetType}
|
|
|
|
assetId={assetId}
|
|
|
|
selectedOptions={selectedOptions}
|
|
|
|
setOpenShareWithGroupAndTeam={setOpenShareWithGroupAndTeam}
|
|
|
|
goBack={goBack}
|
|
|
|
onCopyLink={onCopyLink}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
2025-01-31 07:29:06 +08:00
|
|
|
ShareMenuContent.displayName = 'ShareMenuContent';
|