我现在有如下的props
export type TabsCompProps = {
label: string,
children: React.ReactNode,
key: string,
breadcrumbs: string[]
}[]
export type DetailProps = {
content: string
}
我想要做一个props如下:
type TabsWithDetailProps = {...}[]
TabsWithDetailProps是一个数组,数组里面的元素由TabsCompProps数组提出的一条信息和DetailProps 组成。请问应该如何做呢?