'use client'; import React, {FC} from 'react'; import {InputStyle as S} from './form-container.style'; import {IFormContainer} from './form-container.type'; import {RedStarComponent} from '../../atoms/red-star'; /** * * @author Sina Shahoveisi * @version 0.0.1 * @description A React component that renders label and description for form validation. * @madeUse Emotion */ export const FormContainerComponent: FC = ({ id, label, hint, error, containerClassName, children, mandatory, }) => { return ( {mandatory && } {label && ( {label} )} {children} {hint && ( {hint} )} ); };