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 | 1x 1x 1x 1x 1x 7x 7x 1x | /** @internal */
import CustomFileIcon, { type CustomFileIconProps } from '@/icons/CustomFileIcon';
import { FC } from 'react';
/** Props for {@link COAIcon}: all {@link CustomFileIconProps} except the fixed `label`. */
export type COAIconProps = Omit<CustomFileIconProps, 'label'>;
/**
* A Material-UI icon component that renders a Certificate of Analysis (COA) document.
* Thin wrapper over {@link CustomFileIcon} with a black "COA" label on a gold badge; all
* colors and the optional `language` badge can still be overridden via props.
*
* @component
* @param props - {@link CustomFileIconProps} overrides (colors, `language`, SvgIcon props)
* @returns A React component that renders the COA icon
* @example
* // Default document with a "COA" label and an English badge
* <COAIcon fontSize="small" language="EN" />
* @source
*/
const COAIcon: FC<COAIconProps> = (props) => {
return <CustomFileIcon label="COA" textColor="#000000" labelColor="#d3c32a" {...props} />;
};
export default COAIcon;
|