feat(web): connect quick share flow

Signed-off-by: JustMe <mr.toing@outlook.com>
This commit is contained in:
justme committed 2026-10-02 00:59:37 +08:00
1 parent 53768a195d
commit e02e024605
138 files changed
+10614

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import { Sheet } from '@/ui/Sheet';
import ItemDetail from './ItemDetail';
import { useItemSource } from './source';
import { titleOf } from './summary';
interface Props {
id: string;
onClose: () => void;
readOnly?: boolean;
onDelete?: (id: string) => void;
}
/** 手机上的条目详情:底部抽屉 */
export default function PreviewSheet({ id, onClose, readOnly, onDelete }: Props) {
const item = useItemSource().useItem(id);
return (
<Sheet wide title={item ? titleOf(item) : ''} onClose={onClose}>
<ItemDetail
id={id}
readOnly={readOnly}
onDelete={(i) => {
onDelete?.(i);
onClose();
}}
/>
</Sheet>
);
}