Skip to content

Commit

Permalink
Merge pull request #94 from AI4Bharat/dev
Browse files Browse the repository at this point in the history
Added IndicVoices standalone
  • Loading branch information
Shanks0465 authored Dec 17, 2024
2 parents f35593f + 53053be commit 3588d91
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions frontend/src/app/[title]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export async function generateStaticParams() {
let params: any[] = [{ title: "indicvoices" }];

return params;
}

export default function Standalone({ params }: { params: { title: string } }) {
if (params.title.includes("indicvoices")) {
return (
<iframe
src={"https://indicvoices.ai4bharat.org/"}
title={`${params.title}`}
width="100%"
height={1200}
/>
);
} else {
return <></>;
}
}

0 comments on commit 3588d91

Please sign in to comment.