mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
Add JSON preview for smart playlist query
This commit is contained in:
parent
785f0ef77f
commit
ce0c07ebdb
3 changed files with 28 additions and 1 deletions
7
src/renderer/features/shared/components/json-preview.tsx
Normal file
7
src/renderer/features/shared/components/json-preview.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
interface JsonPreviewProps {
|
||||
value: string | Record<string, any>;
|
||||
}
|
||||
|
||||
export const JsonPreview = ({ value }: JsonPreviewProps) => {
|
||||
return <pre style={{ userSelect: 'all' }}>{JSON.stringify(value, null, 2)}</pre>;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue