mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
29 lines
806 B
TypeScript
29 lines
806 B
TypeScript
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
|
import type { FC } from 'react';
|
|
|
|
import {
|
|
ExportToHtmlMenuItem,
|
|
ExportToMarkdownMenuItem,
|
|
ExportToPdfMenuItem,
|
|
ExportToPngMenuItem,
|
|
} from '../page-list/operation-menu-items/export';
|
|
import { actionsStyle, descriptionStyle, menuItemStyle } from './index.css';
|
|
import type { ShareMenuProps } from './share-menu';
|
|
|
|
export const Export: FC<ShareMenuProps> = () => {
|
|
const t = useAFFiNEI18N();
|
|
return (
|
|
<div className={menuItemStyle}>
|
|
<div className={descriptionStyle}>
|
|
{t['Export Shared Pages Description']()}
|
|
</div>
|
|
<div className={actionsStyle}>
|
|
<ExportToPdfMenuItem />
|
|
<ExportToHtmlMenuItem />
|
|
<ExportToPngMenuItem />
|
|
<ExportToMarkdownMenuItem />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|