import { jsxs as _jsxs } from "react/jsx-runtime";
export function Temperature({ fahrenheit, celsius, unit = 'fahrenheit', }) {
    const temperature = unit === 'fahrenheit' ? fahrenheit : celsius;
    const degree = unit === 'fahrenheit' ? t.degreeFahrenheit : t.degreeCelsius;
    return (_jsxs("span", { children: [Math.trunc(temperature), degree] }));
}
const t = {
    degreeFahrenheit: '°F',
    degreeCelsius: '°C',
};
//# sourceMappingURL=Temperature.js.map