started connect with api
This commit is contained in:
@@ -91,14 +91,14 @@ export function InfoRow({ label, value, children, isLink, href }: InfoRowProps)
|
||||
|
||||
export interface MultiLangRowProps {
|
||||
label: string;
|
||||
value?: { tk?: string; ru?: string; en?: string } | null;
|
||||
value?: { tm?: string; tk?: string; ru?: string; en?: string } | null;
|
||||
}
|
||||
|
||||
export function MultiLangRow({ label, value }: MultiLangRowProps) {
|
||||
if (!value) return <InfoRow label={label} value="—" />;
|
||||
|
||||
const langs = [
|
||||
{ code: "TK", val: value.tk },
|
||||
{ code: "TK", val: value.tm ?? value.tk },
|
||||
{ code: "RU", val: value.ru },
|
||||
{ code: "EN", val: value.en },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user