Files
mtdb_movie/common/resources/client/datatable/column-templates/boolean-indicator.tsx
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

14 lines
398 B
TypeScript
Executable File

import {CheckIcon} from '@common/icons/material/Check';
import {CloseIcon} from '@common/icons/material/Close';
import React from 'react';
interface BooleanIndicatorProps {
value: boolean;
}
export function BooleanIndicator({value}: BooleanIndicatorProps) {
if (value) {
return <CheckIcon className="icon-md text-positive" />;
}
return <CloseIcon className="icon-md text-danger" />;
}