import { getAllProductAreas, getAllStacks, getChannelCounts, getUnansweredThreads, } from '~/data/contribute' import { Admonition } from 'ui-patterns/Admonition' import { UnansweredThreadsTable } from './UnansweredThreadsTable' export async function UnansweredThreads({ product_area, channel, stack, search, }: { product_area?: string | string[] channel?: string stack?: string | string[] search?: string }) { try { const [threads, channelCounts, allProductAreas, allStacks] = await Promise.all([ getUnansweredThreads(product_area, channel, stack, search), getChannelCounts(product_area, stack, search), getAllProductAreas(), getAllStacks(), ]) return ( ) } catch (error) { const errorMessage = error instanceof Error ? error.message : 'Unknown error' return ( ) } }