import { useQuery } from '@tanstack/react-query'; import { ScreenHeading } from '@sd/ui'; import { usePlatform } from '~/util/Platform'; export const Component = () => { const frontEnd = useQuery( ['frontend-deps'], () => import('@sd/assets/deps/frontend-deps.json') ); const backEnd = useQuery(['backend-deps'], () => import('@sd/assets/deps/backend-deps.json')); const platform = usePlatform(); return (
Dependencies {/* item has a LOT more data that we can display, i just went with the basics */} Frontend Dependencies
{frontEnd.data && frontEnd.data?.default.map((item) => { return ( platform.openLink(item.url ?? '')}>

{item.title.trimEnd().substring(0, 24) + (item.title.length > 24 ? '...' : '')}

); })}
Backend Dependencies
{backEnd.data && backEnd.data?.default.map((item) => { return ( platform.openLink(item.url ?? '')}>

{item.title.trimEnd()}

); })}
); };