You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import { Row } from "antd" ;
import { twMerge } from "tailwind-merge" ;
import { useCrushSummary } from "../api/filters.js" ;
import { isNil } from "../../utils.js" ;
export const AccidentSimulationModal = ( { id , modalOpen , setModalOpen } ) => {
const { data , isLoading } = useCrushSummary ( id ) ;
return (
< div className = "flex flex-col gap-1" >
< Row className = { twMerge ( "font-bold" ) } >
В зоне аварии оказалось :
< / R o w >
{ ! isNil ( data ? . potreb _count ) && ! isNil ( data ? . potreb _soc _count ) && (
< Row >
{ data ? . potreb _count + data ? . potreb _soc _count } потребителей ( из них { data ? . potreb _soc _count } - социальные
объекты )
< / R o w >
) }
{ ! isNil ( data ? . total _area ) && (
< Row >
Общая площадь потребителей - { Math . ceil ( data ? . total _area ) } кв . метров
< / R o w >
) }
{ ! isNil ( data ? . number _of _apartments ) && (
< Row >
{ data ? . number _of _apartments } квартир
< / R o w >
) }
{ ! isNil ( data ? . data _min _cooling _time ) && ! isNil ( data ? . min _cooling _time ) && (
< Row >
Быстрее всего остынет здание по
адресу { data ? . data _min _cooling _time . building _address } ( { data ? . min _cooling _time } часов )
< / R o w >
) }
< / d i v >
) ;
} ;