Add JSON preview for smart playlist query

This commit is contained in:
jeffvli 2024-05-02 22:42:25 -07:00 committed by Jeff
parent 785f0ef77f
commit ce0c07ebdb
3 changed files with 28 additions and 1 deletions

View 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>;
};