feat: relay info page
This commit is contained in:
@ -33,10 +33,11 @@ interface CollapsedSectionProps {
|
||||
title: ReactNode;
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
startClosed?: boolean;
|
||||
}
|
||||
|
||||
export const CollapsedSection = ({ title, children, className }: CollapsedSectionProps) => {
|
||||
const [collapsed, setCollapsed] = useState(true);
|
||||
export const CollapsedSection = ({ title, children, className, startClosed }: CollapsedSectionProps) => {
|
||||
const [collapsed, setCollapsed] = useState(startClosed ?? true);
|
||||
const icon = (
|
||||
<div className={classNames("collapse-icon", { flip: !collapsed })}>
|
||||
<Icon name="arrowFront" />
|
||||
|
Reference in New Issue
Block a user