Problem
Many .json files determine whether something is a download or not, however the FE doesn't reflect this. For a simple implementation use the inline conditional text, to label the Button as "Download" or "View"
Example: assets/index.tsx
<Button
text={asset.download ? "Download" : "View"}
link={asset.download ? `/assets/${asset.file}` : asset.file}
self={asset.download}
/>
DoD:
Problem
Many .json files determine whether something is a download or not, however the FE doesn't reflect this. For a simple implementation use the inline conditional text, to label the Button as "Download" or "View"
Example: assets/index.tsx
DoD: