"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormFieldset = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("@chakra-ui/react");
const FormFieldset = ({ children, title, description, }) => {
    return ((0, jsx_runtime_1.jsxs)(react_1.Box, { as: "fieldset", border: "1px", borderColor: "gray.200", borderRadius: "md", p: 4, children: [title && ((0, jsx_runtime_1.jsx)(react_1.Heading, { as: "legend", size: "sm", mb: 2, children: title })), description && ((0, jsx_runtime_1.jsx)(react_1.Text, { color: "gray.600", mb: 4, children: description })), children] }));
};
exports.FormFieldset = FormFieldset;
exports.default = exports.FormFieldset;
//# sourceMappingURL=FormFieldset.js.map