clawchain/dex-app/components/common/WarningMessage.tsx
2026-05-15 19:18:10 +03:00

24 lines
680 B
TypeScript

import React, { FC } from "react";
import { Text, BoxProps } from "@chakra-ui/react";
import Card from "components/Card";
type Props = {
content?: string;
} & BoxProps;
const WarningMessage: FC<Props> = ({
content = "The numbers above are estimates and could change based on network activity between the time you submit your transaction and the time it completes.",
...props
}) => (
<Card py="4" mt="4" borderColor="red.300" {...props}>
<Text display="inline" color="red.500" textStyle="small">
Warning:{" "}
</Text>
<Text display="inline" textStyle="small" variant="secondary">
{content}
</Text>
</Card>
);
export default WarningMessage;