import { GB } from "country-flag-icons/react/3x2"; import { formatNumberPlate } from "../../utils/utils"; type NumberPlateProps = { vrm?: string | undefined; motion?: boolean; size?: "xs" | "sm" | "md" | "lg"; }; const NumberPlate = ({ motion, vrm, size }: NumberPlateProps) => { let options = { plateWidth: "w-[14rem]", textSize: "text-2xl", borderWidth: "border-6", }; switch (size) { case "xs": options = { plateWidth: "w-[8rem]", textSize: "text-md", borderWidth: "border-4", }; break; case "sm": options = { plateWidth: "w-[10rem]", textSize: "text-lg", borderWidth: "border-4", }; break; case "lg": options = { plateWidth: "w-[16rem]", textSize: "text-3xl", borderWidth: "border-6", }; break; } return (

{vrm && formatNumberPlate(vrm)}

); }; export default NumberPlate;