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AAe,CAAC,CAAEzB,QAAAA,CAAO,CAA0B,IAC9D,IAAMC,EAAIC,CAAAA,EAAAA,EAAAA,EAAAA,IACV,MACE,WAACC,MAAAA,CAAIC,UAAWC,E,UACbL,GAAW,UAACG,MAAAA,C,SAAKH,C,GAClB,UAACM,EAAAA,EAAKA,CAAAA,CAACC,MAAON,CAAC,CAAC,yBAAyB,E,KAG/C,C","sources":["webpack://@affine/web/../core/src/pages/workspace/page-list-empty.css.ts","webpack://@affine/web/../core/src/pages/workspace/page-list-empty.tsx"],"sourcesContent":["import \"../core/src/pages/workspace/page-list-empty.css.ts.vanilla.css!=!../../../../../../node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\\\"fileName\\\":\\\"../core/src/pages/workspace/page-list-empty.css.ts.vanilla.css\\\",\\\"source\\\":\\\"Ll8xYjJ3a3JzMCB7CiAgaGVpZ2h0OiBjYWxjKDEwMCUgLSA1MnB4KTsKfQouXzFiMndrcnMxIHsKICBjdXJzb3I6IHBvaW50ZXI7CiAgY29sb3I6IHZhcigtLWFmZmluZS10ZXh0LXNlY29uZGFyeS1jb2xvcik7CiAgYmFja2dyb3VuZDogdmFyKC0tYWZmaW5lLWJhY2tncm91bmQtY29kZS1ibG9jayk7CiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tYWZmaW5lLWJvcmRlci1jb2xvcik7CiAgYm9yZGVyLXJhZGl1czogNHB4OwogIHBhZGRpbmc6IDAgNnB4OwogIGJveC1zaXppbmc6IGJvcmRlci1ib3g7Cn0KLl8xYjJ3a3JzMTpob3ZlciB7CiAgYmFja2dyb3VuZDogdmFyKC0tYWZmaW5lLWhvdmVyLWNvbG9yKTsKfQouXzFiMndrcnMyIHsKICBjdXJzb3I6IHRleHQ7Cn0KLl8xYjJ3a3JzMyB7CiAgYm9yZGVyLXdpZHRoOiAxcHg7CiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1hZmZpbmUtbGF5ZXItYm9yZGVyKTsKICBib3gtc2hhZG93OiBub25lOwogIGN1cnNvcjogZGVmYXVsdDsKfQouXzFiMndrcnM0IHsKICBkaXNwbGF5OiBmbGV4OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgZ2FwOiA4cHg7Cn0=\\\"}!../../../../../../node_modules/@vanilla-extract/webpack-plugin/extracted.js\"\nexport var descWrapper = '_1b2wkrs4';\nexport var emptyDescButton = '_1b2wkrs1';\nexport var emptyDescKbd = '_1b2wkrs2 _1b2wkrs1';\nexport var pageListEmptyStyle = '_1b2wkrs0';\nexport var plusButton = '_1b2wkrs3';","import { Empty, IconButton } from '@affine/component';\nimport { Trans, useI18n } from '@affine/i18n';\nimport { PlusIcon } from '@blocksuite/icons/rc';\nimport type { DocCollection } from '@blocksuite/store';\nimport type { ReactNode } from 'react';\n\nimport * as styles from './page-list-empty.css';\n\nexport const EmptyPageList = ({\n type,\n heading,\n}: {\n type: 'all' | 'trash' | 'shared' | 'public';\n docCollection: DocCollection;\n heading?: ReactNode;\n}) => {\n const t = useI18n();\n\n const getEmptyDescription = () => {\n if (type === 'all') {\n const createNewPageButton = (\n }\n />\n );\n if (environment.isDesktop) {\n const shortcut = environment.isMacOs ? '⌘ + N' : 'Ctrl + N';\n return (\n \n Click on the {createNewPageButton} button Or press\n {{ shortcut } as any} to\n create your first page.\n \n );\n }\n return (\n \n Click on the\n {createNewPageButton}\n button to create your first page.\n \n );\n }\n if (type === 'trash') {\n return t['com.arms.workspaceSubPath.trash.empty-description']();\n }\n if (type === 'shared') {\n return t['emptySharedPages']();\n }\n return;\n };\n\n return (\n
\n {heading &&
{heading}
}\n {getEmptyDescription()}\n }\n />\n
\n );\n};\n\nexport const EmptyCollectionList = ({ heading }: { heading: ReactNode }) => {\n const t = useI18n();\n return (\n
\n {heading &&
{heading}
}\n \n
\n );\n};\n\nexport const EmptyTagList = ({ heading }: { heading: ReactNode }) => {\n const t = useI18n();\n return (\n
\n {heading &&
{heading}
}\n \n
\n );\n};\n"],"names":["pageListEmptyStyle","EmptyPageList","type","heading","t","useI18n","div","className","styles","Empty","title","description","span","getEmptyDescription","createNewPageButton","IconButton","withoutHover","variant","icon","PlusIcon","environment","isDesktop","shortcut","isMacOs","Trans","i18nKey","kbd","EmptyCollectionList","EmptyTagList"],"sourceRoot":""}