Files
hipmi/src/app_modules/component_global/box_information.tsx
Bagasbanuna02 ac12dd4a98 UI Job
# style
- UI Job di bagian user selesai

# fix
- Scroll data untuk beranda dan tampilan yang lain selesi

## No issue
2024-07-05 16:29:54 +08:00

53 lines
1.2 KiB
TypeScript

import { Center, Grid, Group, Paper, Stack, Text, Title } from "@mantine/core";
import { AccentColor, MainColor } from "./color/color_pallet";
export default function ComponentGlobal_BoxInformation({
informasi,
isReport,
}: {
informasi: string;
isReport?: boolean;
}) {
return (
<>
{isReport ? (
<Paper
bg={"blue.3"}
p={10}
style={{
backgroundColor: AccentColor.blue,
border: `1px solid ${AccentColor.skyblue}`,
}}
>
<Stack spacing={0}>
<Text fz={10} fs={"italic"} c={"orange"} fw={"bold"}>
* Report
</Text>
<Text fz={10} c={"white"}>
{informasi}
</Text>
</Stack>
</Paper>
) : (
<Paper
bg={"blue.3"}
p={10}
style={{
backgroundColor: AccentColor.blue,
border: `1px solid ${AccentColor.skyblue}`,
}}
>
<Group>
<Text fz={10} c={"red"} fw={"bold"}>
*{" "}
<Text span inherit c={"white"} fw={"normal"}>
{informasi}
</Text>
</Text>
</Group>
</Paper>
)}
</>
);
}