feat: Intra-line double link interaction

This commit is contained in:
xiaodong zuo
2022-08-19 10:27:26 +08:00
parent f0f60654e8
commit 1820135f3a
2 changed files with 32 additions and 24 deletions
@@ -1,6 +1,15 @@
import { PagesIcon } from '@toeverything/components/icons';
import React, { useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
import { Descendant } from 'slate';
export type DoubleLinkElement = {
type: 'link';
workspaceId: string;
blockId: string;
children: Descendant[];
id: string;
};
export const DoubleLinkComponent = ({ attributes, children, element }: any) => {
const navigate = useNavigate();