w-funnel/src/components/domains/TrialPayment/Policy/Policy.tsx
gofnnp 55b81890a3 trial-payment
new pages
2025-10-01 17:33:49 +04:00

25 lines
571 B
TypeScript

import Typography, {
TypographyProps,
} from "@/components/ui/Typography/Typography";
import { cn } from "@/lib/utils";
interface PolicyProps extends React.ComponentProps<"div"> {
text?: TypographyProps<"p">;
}
export default function Policy({ text, ...props }: PolicyProps) {
return (
<div {...props} className={cn("w-full", props.className)}>
{text && (
<Typography
as="p"
font="inter"
size="xs"
{...text}
className={cn("text-[#6B7280]", text.className)}
/>
)}
</div>
);
}