1 import type { PropsWithChildren, ReactNode } from 'react';
2 import { type FC, type ReactElement } from 'react';
4 import { itemTypeToSubThemeClassName } from '@proton/pass/components/Layout/Theme/types';
5 import { type ItemType } from '@proton/pass/types';
6 import clsx from '@proton/utils/clsx';
8 import { Panel } from './Panel';
9 import { PanelHeader } from './PanelHeader';
12 actions?: ReactElement[];
18 export const ItemHistoryPanel: FC<PropsWithChildren<Props>> = ({ children, actions, footer, title, type }) => (
20 className={clsx(itemTypeToSubThemeClassName[type], 'relative')}
21 header={<PanelHeader title={title} actions={actions} />}