import { Trans } from "react-i18next"; import { Permission } from "../api/representations"; type SharedWithProps = { permissions?: Permission[]; }; export const SharedWith = ({ permissions: p = [] }: SharedWithProps) => { return ( {{ username: p[0] ? p[0].username : undefined, }} {{ other: p.length - 1, }} ); };