mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
14 lines
292 B
TypeScript
14 lines
292 B
TypeScript
import { useState } from 'react';
|
|
|
|
type PageViewStatusType = 'editor' | 'board';
|
|
|
|
export const useLayoutHeader = () => {
|
|
const [pageViewStatus, setPageViewStatus] =
|
|
useState<PageViewStatusType>('editor');
|
|
|
|
return {
|
|
pageViewStatus,
|
|
setPageViewStatus,
|
|
};
|
|
};
|