import {
Button,
DarkMode,
Flex,
Heading,
Stack,
VStack,
Text,
SimpleGrid,
} from '@chakra-ui/react'
import { BackgroundPolygons } from 'components/Homepage/Hero/BackgroundPolygons'
import { Footer } from 'components/common/Footer'
import { Header } from 'components/common/Header/Header'
import { SocialMetaTags } from 'components/common/SocialMetaTags'
import { GetStaticPropsResult } from 'next'
import Link from 'next/link'
type OSSFriend = {
href: string
name: string
description: string
}
type Props = {
ossFriends: OSSFriend[]
}
export default function OSSFriendsPage({ ossFriends }: Props) {
return (
Our{' '}
Open-source
{' '}
Friends
We love open-source and we are proud to support these amazing
projects. 💙
{ossFriends
.filter((friend) => friend.name !== 'Typebot')
.map((friend, index) => (
{friend.name}
{friend.description}
))}
)
}
export async function getStaticProps(): Promise> {
const res = await fetch('https://formbricks.com/api/oss-friends')
const data = await res.json()
return {
props: {
ossFriends: data.data,
},
}
}