Buckets:
| import { Match, Switch } from "solid-js" | |
| import { useI18n } from "~/context/i18n" | |
| export const plans = [ | |
| { id: "20", multiplier: null }, | |
| { id: "100", multiplier: "black.plan.multiplier100" }, | |
| { id: "200", multiplier: "black.plan.multiplier200" }, | |
| ] as const | |
| export type PlanID = (typeof plans)[number]["id"] | |
| export type Plan = (typeof plans)[number] | |
| export function PlanIcon(props: { plan: string }) { | |
| const i18n = useI18n() | |
| return ( | |
| <Switch> | |
| <Match when={props.plan === "20"}> | |
| <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <title>{i18n.t("black.plan.icon20")}</title> | |
| <rect x="0.5" y="0.5" width="23" height="23" stroke="currentColor" /> | |
| </svg> | |
| </Match> | |
| <Match when={props.plan === "100"}> | |
| <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <title>{i18n.t("black.plan.icon100")}</title> | |
| <rect x="0.5" y="0.5" width="9" height="9" stroke="currentColor" /> | |
| <rect x="0.5" y="14.5" width="9" height="9" stroke="currentColor" /> | |
| <rect x="14.5" y="0.5" width="9" height="9" stroke="currentColor" /> | |
| <rect x="14.5" y="14.5" width="9" height="9" stroke="currentColor" /> | |
| </svg> | |
| </Match> | |
| <Match when={props.plan === "200"}> | |
| <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <title>{i18n.t("black.plan.icon200")}</title> | |
| <rect x="0.5" y="0.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="0.5" y="5.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="0.5" y="10.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="0.5" y="15.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="0.5" y="20.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="5.5" y="0.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="5.5" y="5.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="5.5" y="10.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="5.5" y="15.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="5.5" y="20.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="10.5" y="0.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="10.5" y="5.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="10.5" y="10.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="10.5" y="15.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="10.5" y="20.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="15.5" y="0.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="15.5" y="5.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="15.5" y="10.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="15.5" y="15.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="15.5" y="20.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="20.5" y="0.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="20.5" y="5.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="20.5" y="10.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="20.5" y="15.5" width="3" height="3" stroke="currentColor" /> | |
| <rect x="20.5" y="20.5" width="3" height="3" stroke="currentColor" /> | |
| </svg> | |
| </Match> | |
| </Switch> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 3.55 kB
- Xet hash:
- 88101995b5ab35d56bd06c285b5270f84ece697181f0495d0c6d19447468061d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.