diff --git a/src/components/Collapsibles.tsx b/src/components/Collapsibles.tsx index 6203337..a01fe91 100644 --- a/src/components/Collapsibles.tsx +++ b/src/components/Collapsibles.tsx @@ -11,10 +11,11 @@ export const Collapsibles = ({ children }) => { interface CollapsibleProps { title: React.ReactNode; subtitle?: React.ReactNode; + tags?: string[]; inner: React.ReactNode; } -export const Collapsible: React.FC = ({ title, subtitle, inner }) => { +export const Collapsible: React.FC = ({ title, subtitle, inner, tags = [] }) => { const [isInnerVisible, setIsInnerVisible] = useState(false); const innerRef = useRef(null); const [innerHeight, setInnerHeight] = useState(0); @@ -33,7 +34,7 @@ export const Collapsible: React.FC = ({ title, subtitle, inner

- {title} + {title}{tags.map((tag) => ({tag}))} {subtitle &&
{subtitle}
}

diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx index bbe353b..60a20ba 100644 --- a/src/pages/download/index.tsx +++ b/src/pages/download/index.tsx @@ -102,6 +102,7 @@ const DownloadPage: React.FC = () => ( A companion mod to Geyser which allows for Bedrock players to join modded Minecraft: Java Edition servers.} + tags={['Beta']} inner={