import { truncate } from '@/utils/HelperUtil' import { Avatar, Button, Card, Link, Text, Tooltip } from '@nextui-org/react' import Image from 'next/image' /** * Types */ interface IProps { logo?: string name?: string url?: string onDelete: () => Promise } /** * Component */ export default function PairingCard({ logo, name, url, onDelete }: IProps) { return (
{name} {truncate(url?.split('https://')[1] ?? 'Unknown', 23)}
) }