0
0
Fork 0
This commit is contained in:
Xeltica 2022-01-27 19:55:33 +09:00
parent 11f185bf72
commit 7c833c3568
8 changed files with 161 additions and 9 deletions

View file

@ -0,0 +1,10 @@
import React from 'react';
import { useGetSessionQuery } from '../services/session';
import { Skeleton } from './Skeleton';
export const CurrentUser: React.VFC = () => {
const {data} = useGetSessionQuery(undefined);
return data ? (
<h1 className="text-125">{data.username}<span className="text-dimmed">@{data.host}</span></h1>
) : <Skeleton height="1.5rem" />;
};