mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 22:42:21 +00:00
16 lines
406 B
TypeScript
16 lines
406 B
TypeScript
import { memo } from 'react';
|
|
import { classNames } from '~/utils/classNames';
|
|
|
|
interface PanelHeaderProps {
|
|
className?: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const PanelHeader = memo(({ className, children }: PanelHeaderProps) => {
|
|
return (
|
|
<div className={classNames('flex items-center gap-2 bg-gray-50 border-b px-4 py-1 min-h-[34px]', className)}>
|
|
{children}
|
|
</div>
|
|
);
|
|
});
|