Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x | import { useRecoilValue } from "recoil";
import { Row, Col } from "@canonical/react-components";
import { packageDataState } from "../../state/atoms";
import { capitalize } from "../../utils";
import type { Package } from "../../types";
function Settings() {
const packageData = useRecoilValue<Package | undefined>(packageDataState);
return (
<section className="p-strip u-no-padding--top">
<Row>
<Col size={2}>
<p>Status:</p>
</Col>
<Col size={8}>
<p>{packageData && capitalize(packageData?.status)}</p>
</Col>
</Row>
</section>
);
}
export default Settings;
|