2024-09-19 19:22:43 -05:00
|
|
|
"use client"
|
|
|
|
|
import { Typography } from "@mui/material"
|
|
|
|
|
import React from "react"
|
|
|
|
|
|
|
|
|
|
interface LabelProps {
|
|
|
|
|
htmlFor: string
|
|
|
|
|
text: string
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-30 15:17:38 -05:00
|
|
|
const Label = React.memo(({ htmlFor, text }: LabelProps) => {
|
2024-09-19 19:22:43 -05:00
|
|
|
return (
|
2024-09-24 17:35:35 -05:00
|
|
|
<label htmlFor={htmlFor} className="mb-2 block">
|
2024-09-30 15:17:38 -05:00
|
|
|
<Typography
|
|
|
|
|
variant="subtitle1">{text}</Typography>
|
2024-09-24 17:35:35 -05:00
|
|
|
</label>
|
2024-09-30 15:17:38 -05:00
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Label.displayName = "Label";
|
2024-09-19 19:22:43 -05:00
|
|
|
|
|
|
|
|
export default Label
|
2024-09-24 17:35:35 -05:00
|
|
|
|