import { truncate } from '@/utils/HelperUtil' import { Avatar, Card, Link, Text } from '@nextui-org/react' import Image from 'next/image' import NextLink from 'next/link' /** * Types */ interface IProps { topic?: string logo?: string name?: string url?: string } /** * Component */ export default function SessionCard({ logo, name, url, topic }: IProps) { return (
{name} {truncate(url?.split('https://')[1] ?? 'Unknown', 23)}
session icon
) }