@@ -178,10 +178,7 @@ function renderText(type: InfoPanelType, children: ReactNode) {
178178}
179179
180180
181- export default function InfoPanel ( {
182- type = 'info' ,
183- children,
184- } : InfoPanelProps ) {
181+ export default function InfoPanel ( { type = 'info' , children, } : InfoPanelProps ) {
185182 const style = typeStyles [ type ] ;
186183
187184 return (
@@ -192,42 +189,3 @@ export default function InfoPanel({
192189 </ div >
193190 ) ;
194191}
195-
196-
197-
198- // function renderText(type: InfoPanelType, children: ReactNode) {
199- // const lines = extractLines(children);
200- // const [title = [], ...rest] = lines;
201- // const style = typeStyles[type];
202- //
203- // return (
204- // <>
205- // <div
206- // className={`text-mi mt-2 mb-1 flex flex-col sm:flex-row sm:items-center gap-2 ${style.titleColor}`}
207- // >
208- // <div className="flex-shrink-0">
209- // {React.cloneElement(style.icon, {className: `w-4 h-4 ${style.titleColor}` }) }
210- // </div>
211- // <div className="break-words whitespace-pre-line leading-snug">
212- // {title}
213- // </div>
214- // </div>
215- // <div className={`space-y-1 text-mi pl-[1.3rem] ${style.titleColor}`}>
216- // {rest.map((line, i) => (
217- // <div key={i}>{line}</div>
218- // ))}
219- // </div>
220- // </>
221- // );
222- // }
223- //
224- //
225- // export default function InfoPanel({type = 'info', children}: InfoPanelProps) {
226- // const style = typeStyles[type];
227- //
228- // return (
229- // <div className={`my-4 px-4 py-3 rounded-md prose ${style.bg} ${style.border} ${style.text}`}>
230- // {renderText(type, children)}
231- // </div>
232- // );
233- // }
0 commit comments