import { HeartFill, HandThumbsUp, HandThumbsDown, People, EmojiLaughing, } from "react-bootstrap-icons"; import BlueLink from "./BlueLink"; import Card from "./Card"; import type { Field } from "../lib/types"; function linkPronoun(input: string) { if (input.includes(" ") || input.split("/").length !== 5) return {input}; const [sub, obj, possDet, possPro, reflexive] = input.split("/"); return ( {sub}/{obj}/{possDet} ); } export default function FieldCard({ field, draggable, }: { field: Field; draggable?: boolean; }) { return ( {field.favourite?.map((entry) => (

{linkPronoun(entry)}

))} {field.okay && field.okay.length !== 0 && (

{field.okay!.join(", ")}

)} {field.jokingly && field.jokingly.length !== 0 && (

{field.jokingly!.join(", ")}

)} {field.friends_only && field.friends_only.length !== 0 && (

{field.friends_only!.join(", ")}

)} {field.avoid && field.avoid.length !== 0 && (

{field.avoid!.join(", ")}

)}
); }