added lang param to api
This commit is contained in:
@@ -102,11 +102,12 @@ export function InfoRow({ label, value, children, isLink, href }: InfoRowProps)
|
||||
|
||||
export interface MultiLangRowProps {
|
||||
label: string;
|
||||
value?: { tm?: string; tk?: string; ru?: string; en?: string } | null;
|
||||
value?: { tm?: string; tk?: string; ru?: string; en?: string } | string | null;
|
||||
}
|
||||
|
||||
export function MultiLangRow({ label, value }: MultiLangRowProps) {
|
||||
if (!value) return <InfoRow label={label} value="—" />;
|
||||
if (typeof value === "string") return <InfoRow label={label} value={value} />;
|
||||
|
||||
const langs = [
|
||||
{ code: "TK", val: value.tm ?? value.tk },
|
||||
|
||||
Reference in New Issue
Block a user