Move card types to declaration file

This commit is contained in:
2023-10-19 16:49:25 -04:00
parent 9a5820cfba
commit b6f073083e
4 changed files with 27 additions and 29 deletions

View File

@ -13,13 +13,7 @@ import {
} from "@chakra-ui/react";
import { useState } from "react";
export default function (props: {
attachment: string;
attachment_loading?: boolean;
reporter?: { [k: string]: any };
target_ids: number[];
target_usernames: string[];
}) {
export default function (props: ReportCardProps) {
const targetMap: { [k: number]: string } = {};
const [attachmentReady, setAttachmentReady] = useState(
!props.attachment_loading