mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
20 lines
364 B
TypeScript
20 lines
364 B
TypeScript
import React from 'react'
|
|
|
|
export default function ShowParams({
|
|
prefix,
|
|
params,
|
|
}: {
|
|
prefix: string
|
|
params: Record<string, unknown>
|
|
}) {
|
|
return (
|
|
<div id={`${prefix}-layout`}>
|
|
{Object.entries(params).map(([key, val]) => (
|
|
<div key={key} id={`${prefix}-${key}`}>
|
|
{JSON.stringify(val)}
|
|
</div>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|