mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
28 lines
858 B
TypeScript
28 lines
858 B
TypeScript
import {Icon} from "@iconify/react";
|
|||
|
|
import {CircleHelp, KeyRound} from "lucide-react";
|
||
|
|
|
||
|
|
|
||
|
|
export const providerSwitch = (provider: string) => {
|
||
|
|
switch (provider) {
|
||
|
|
case "google":
|
||
|
|
return (
|
||
|
|
<div className="p-4">
|
||
|
|
<Icon icon={"logos:google"} height="24" />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
case "credential":
|
||
|
|
return (
|
||
|
|
<div className="flex flex-row gap-x-2 items-center p-4">
|
||
|
|
<KeyRound height="24" />
|
||
|
|
<span>Email and Password</span>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
default:
|
||
|
|
return (
|
||
|
|
<div className="flex flex-row gap-x-2 items-center p-4">
|
||
|
|
<CircleHelp height="24" />
|
||
|
|
<span>No credentials</span>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|