|
|
|
@@ -1,10 +1,10 @@ |
|
|
|
import { Chip, ChipProps } from "@mui/material"; |
|
|
|
|
|
|
|
export type RequireChipProps = { show?: boolean } & ChipProps; |
|
|
|
export default function RequireChip(props: RequireChipProps) { |
|
|
|
const { show } = props; |
|
|
|
if (show === false) { |
|
|
|
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" {...props} />; |
|
|
|
return <Chip size="small" label="必須" color="error" {...others} />; |
|
|
|
} |