mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-08 15:13:50 -05:00
* fix: add gitattribute rules for woff2 files * feat: add lifi widget + fixes minor issues * fix: remove unused packages + clean constants declaration and config * fix: update dockerfile and github ci workflows * fix: env variable naming issue * fix: bridge mode alt value issue + remove button component
24 lines
792 B
TypeScript
24 lines
792 B
TypeScript
import React from "react";
|
|
import styles from "./bridge-mode.module.scss";
|
|
import Image from "next/image";
|
|
import { useFormStore } from "@/stores";
|
|
import { BridgeProvider } from "@/types";
|
|
|
|
export default function BridgeMode() {
|
|
const token = useFormStore((state) => state.token);
|
|
const label = token.bridgeProvider === BridgeProvider.NATIVE ? "Native bridge" : "CCTP";
|
|
const logoSrc =
|
|
token.bridgeProvider === BridgeProvider.NATIVE ? "/images/logo/linea-rounded.svg" : "/images/logo/cctp.svg";
|
|
|
|
return (
|
|
<div className={styles.container}>
|
|
<div className={styles.button}>
|
|
<div className={styles["selected-label"]}>
|
|
<Image src={logoSrc} width={16} height={16} alt={label} />
|
|
<span>{label}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|