import Table from 'components/to-be-cleaned/Table' import type { AuthorizedApp } from 'data/oauth/authorized-apps-query' import dayjs from 'dayjs' import { Trash } from 'lucide-react' import { Button } from 'ui' export interface AuthorizedAppRowProps { app: AuthorizedApp onSelectRevoke: () => void } const AuthorizedAppRow = ({ app, onSelectRevoke }: AuthorizedAppRowProps) => { return (
{!!app.icon ? '' : `${app.name[0]}`}
{app.name} {dayjs(app.authorized_at).format('DD/MM/YYYY, HH:mm:ss')}