import { Chip, ChipProps } from "@mui/material";

export type RequireChipProps = { require?: boolean } & ChipProps;

export default function RequireChip({ require, ...others }: RequireChipProps) {
  if (require === false) {
    return null;
  }
  return <Chip size="small" label="必須" color="error" {...others} />;
}
