Split PanelType out into own file

This commit is contained in:
Oliver Walters 2024-06-15 05:58:41 +00:00
parent 70e5c7b142
commit e019455f18
2 changed files with 15 additions and 13 deletions

View File

@ -0,0 +1,14 @@
import { ReactNode } from 'react';
/**
* Type used to specify a single panel in a panel group
*/
export type PanelType = {
name: string;
label: string;
icon?: ReactNode;
content: ReactNode;
hidden?: boolean;
disabled?: boolean;
showHeadline?: boolean;
};

View File

@ -25,19 +25,7 @@ import { navigateToLink } from '../../functions/navigation';
import { useLocalState } from '../../states/LocalState';
import { Boundary } from '../Boundary';
import { StylishText } from '../items/StylishText';
/**
* Type used to specify a single panel in a panel group
*/
export type PanelType = {
name: string;
label: string;
icon?: ReactNode;
content: ReactNode;
hidden?: boolean;
disabled?: boolean;
showHeadline?: boolean;
};
import { PanelType } from './Panel';
export type PanelProps = {
pageKey: string;