import { FC, useState } from 'react'; import type { IPagePopulatedToShowRevision } from '@growi/core'; import { TextInputForPageTitleAndPath } from './TextInputForPageTitleAndPath'; type Props = { currentPagePath: string currentPage: IPagePopulatedToShowRevision } export const PagePath: FC = (props) => { const { currentPagePath, currentPage } = props; const [isRenameInputShown, setRenameInputShown] = useState(false); const [isButtonsShown, setButtonShown] = useState(false); const stateHandler = { isRenameInputShown, setRenameInputShown }; return ( <>
{ isButtonsShown && ( <>
)}
); };