mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
22 lines
659 B
TypeScript
22 lines
659 B
TypeScript
import providers from '../data/authProviders'
|
|
import { IconPanel } from 'ui'
|
|
import Link from 'next/link'
|
|
|
|
export default function AuthProviders({ type }: { type: string }) {
|
|
const filterProviders = providers.filter((item) => item.authType === type)
|
|
|
|
return (
|
|
<>
|
|
<div className="grid grid-cols-12 gap-10 not-prose py-8">
|
|
{filterProviders.map((x) => (
|
|
<Link href={`${x.href}`} key={x.name} passHref>
|
|
<a className="col-span-6 lg:col-span-4 xl:col-span-3">
|
|
<IconPanel title={x.name} icon={x.logo} hasLightIcon={x.hasLightIcon} />
|
|
</a>
|
|
</Link>
|
|
))}
|
|
</div>
|
|
</>
|
|
)
|
|
}
|