22 lines
465 B
TypeScript
22 lines
465 B
TypeScript
import type { ThemedProgressProps } from "$/types/ProgressTypes";
|
|
import { forwardRef } from "react";
|
|
import Progress from "./Progress";
|
|
|
|
|
|
const WarningProgress = forwardRef<HTMLDivElement, ThemedProgressProps>(({
|
|
...props
|
|
}, ref ) => {
|
|
return (
|
|
<Progress
|
|
backgroundColor="var(--color-neutral)"
|
|
progressColor="var(--color-warning)"
|
|
ref={ref}
|
|
{...props}
|
|
/>
|
|
);
|
|
});
|
|
|
|
WarningProgress.displayName = "WarningProgress";
|
|
|
|
export default WarningProgress;
|