-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46ae76e
commit 9b5b3c8
Showing
10 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { ReactNode } from 'react'; | ||
|
||
interface DebugDisplayProps { | ||
label: string; | ||
data: string; | ||
children?: ReactNode; | ||
} | ||
|
||
const DebugDisplay: React.FC<DebugDisplayProps> = ({ label, data, children }: DebugDisplayProps) => { | ||
return ( | ||
<> | ||
<details tabIndex={0} className="border collapse collapse-arrow border-base-300 bg-base-200"> | ||
<summary className="text-xl font-medium collapse-title">DEBUG: {label}</summary> | ||
<div className="collapse-content"> | ||
<p>{data}</p> | ||
{children} | ||
</div> | ||
</details> | ||
</> | ||
); | ||
}; | ||
|
||
export default DebugDisplay; |