mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-18 08:27:28 +08:00
fix ui
This commit is contained in:
26
webui/src/components/layout/ListPanel.tsx
Normal file
26
webui/src/components/layout/ListPanel.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
|
||||
type ListPanelProps = {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
header?: React.ReactNode;
|
||||
};
|
||||
|
||||
function joinClasses(...values: Array<string | undefined | false>) {
|
||||
return values.filter(Boolean).join(' ');
|
||||
}
|
||||
|
||||
const ListPanel: React.FC<ListPanelProps> = ({
|
||||
children,
|
||||
className,
|
||||
header,
|
||||
}) => {
|
||||
return (
|
||||
<div className={joinClasses('brand-card ui-panel rounded-[28px] overflow-hidden flex flex-col min-h-0', className)}>
|
||||
{header}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ListPanel;
|
||||
Reference in New Issue
Block a user