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