import * as React from "react"; import type { FC } from "react"; import { Card } from "../../../components/Card/Card"; import { Button } from "../../../components/Button/Button"; import styles from "./TabInfo.module.scss"; interface TabInfoProps { title: string; url: string; favIconUrl?: string; onReload: () => void; } export const TabInfo: FC = ({ title, url, favIconUrl, onReload, }) => { const getInitial = (text: string): string => { return text.charAt(0).toUpperCase(); }; return (
{favIconUrl ? ( ) : (
{getInitial(title)}
)}

{title}

{url}

); };