You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
320B

  1. import { Chip, ChipProps } from "@mui/material";
  2. export type RequireChipProps = { require?: boolean } & ChipProps;
  3. export default function RequireChip({ require, ...others }: RequireChipProps) {
  4. if (require === false) {
  5. return null;
  6. }
  7. return <Chip size="small" label="必須" color="error" {...others} />;
  8. }