(
"/api/cfgx",
noticeFetcher,
)
if (isLoading)
return [1, 2, 3].map((id) => (
))
return (
{cfgx?.map((cfgx) => (
))}
)
}
interface CfgxCardProps {
created_at: string
updated_at: string
cfgx_version: string
title: string
description: string
version: string
author: string
content: string
alias_list?: {
id: string
info: string
value: string
}
key_list?: {
id: string
info: string
value: string
}
value_list?: {
id: string
info: string
value: string
}
}
function CfgxCard(props: CfgxCardProps) {
return (
{props.title}
{props.version}
{props.author}
{props.description}
{props.content}
{props.alias_list && (
{props.alias_list.id} {props.alias_list.info} {props.alias_list.value}
)}
)
}