import React from "react";
import {
BooleanField,
Datagrid,
List,
Pagination,
SelectField,
Show,
Tab,
TabbedShowLayout,
TextField,
useTranslate,
} from "react-admin";
import get from "lodash/get";
import { Tooltip, Typography } from "@material-ui/core";
import HttpsIcon from "@material-ui/icons/Https";
import NoEncryptionIcon from "@material-ui/icons/NoEncryption";
import PageviewIcon from "@material-ui/icons/Pageview";
import ViewListIcon from "@material-ui/icons/ViewList";
import VisibilityIcon from "@material-ui/icons/Visibility";
const RoomPagination = props => (
);
const EncryptionField = ({ source, record = {}, emptyText }) => {
const translate = useTranslate();
const value = get(record, source);
let ariaLabel = value === false ? "ra.boolean.false" : "ra.boolean.true";
if (value === false || value === true) {
return (
{value === true ? (
) : (
)}
);
}
return (
{emptyText}
);
};
export const RoomList = props => (
}
sort={{ field: "name", order: "ASC" }}
>
}
/>
);
const RoomTitle = ({ record }) => {
const translate = useTranslate();
var name = ""
if (record) {
name = record.name !== "" ? record.name : record.id
}
return (
{translate("resources.rooms.name", 1)} {name}
);
};
export const RoomShow = props => {
const translate = useTranslate();
return (
}>
}>
}
path="detail"
>
}
path="permission"
>
);
};