"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const formatFileTypeToView_1 = require("@astral/utils/file/formatFileTypeToView");
const useLogic = ({ accept, ...restProps }) => {
    const extensions = accept.map(formatFileTypeToView_1.formatFileTypeToView).join(', ');
    return { extensions, ...restProps };
};
exports.useLogic = useLogic;
