mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 12:44:47 -05:00
* YouTube lite embed + CSS bundled import * Migration initial * New VoD page initial functioning * Table changes + add TODOs * New structure for add vod page * WIP add new VoD backend * Merge branch 'rewrite' of https://github.com/Sendouc/sendou.ink into vods * Fix when leaderboard appears * Function new vod form * Single vod page initial * Different YouTubeEmbed * Scroll to top when going to timestamp * Vod match weapon/mode icons * Vod page user * Add date to vod page * Adjust migration order * Vod page many weapons * Add title to vod page * New vods page cast many weapons * Add player index to order by * Vods new more validation * Vod listing page initial * Vods page with filters * Show message if no vods * Fix not being to unset filters * Fix seed sometimes throwing errors * User page VoDs * Vods nullable weapon combobox * Link directly to user custom url from vod page * Make video adder admin action * Can add video checks * i18n * New VoD form tests * VoD operates filters test * Vods behind flag * Remove from config
21 lines
607 B
TypeScript
21 lines
607 B
TypeScript
import { Link } from "@remix-run/react";
|
|
import { Avatar } from "~/components/Avatar";
|
|
import { discordFullName } from "~/utils/strings";
|
|
import { userVodsPage } from "~/utils/urls";
|
|
import type { Vod } from "../vods-types";
|
|
|
|
export function PovUser({ pov }: { pov: Vod["pov"] }) {
|
|
if (!pov) return null;
|
|
|
|
if (typeof pov === "string") {
|
|
return <div className="text-sm">{pov}</div>;
|
|
}
|
|
|
|
return (
|
|
<Link to={userVodsPage(pov)} className="stack horizontal xs">
|
|
<Avatar user={pov} size="xxs" />
|
|
<span className="text-sm font-semi-bold">{discordFullName(pov)}</span>
|
|
</Link>
|
|
);
|
|
}
|