mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 11:36:25 +08:00
22 lines
606 B
TypeScript
22 lines
606 B
TypeScript
import { PropsWithChildren, ReactNode } from 'react';
|
|
import Header from './Header';
|
|
import { StyledPageListTittleWrapper } from './styles';
|
|
// import QuickSearchButton from './QuickSearchButton';
|
|
|
|
export type PageListHeaderProps = PropsWithChildren<{
|
|
icon?: ReactNode;
|
|
}>;
|
|
export const PageListHeader = ({ icon, children }: PageListHeaderProps) => {
|
|
return (
|
|
<Header>
|
|
<StyledPageListTittleWrapper>
|
|
{icon}
|
|
{children}
|
|
{/* <QuickSearchButton style={{ marginLeft: '5px' }} /> */}
|
|
</StyledPageListTittleWrapper>
|
|
</Header>
|
|
);
|
|
};
|
|
|
|
export default PageListHeader;
|