mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-11 21:28:12 +09:00
7 lines
126 B
TypeScript
7 lines
126 B
TypeScript
export default function (user: {
|
|
name?: string | null;
|
|
username: string;
|
|
}): string {
|
|
return user.name || user.username;
|
|
}
|