<?xml version="1.0" encoding="utf-8" ?>
<local:SettingSectionBase
    x:Class="RodelAgent.UI.Controls.Settings.LibrarySettingSection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:base="using:Richasy.WinUI.Share.Base"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:RodelAgent.UI.Extensions"
    xmlns:ic="using:FluentIcons.WinUI"
    xmlns:local="using:RodelAgent.UI.Controls.Settings"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <base:SettingsCard Description="{x:Bind ViewModel.WorkingDirectory, Mode=OneWay}" Header="{ext:Locale Name=WorkingDirectorySetting}">
        <base:SettingsCard.HeaderIcon>
            <ic:SymbolIcon Symbol="Folder" />
        </base:SettingsCard.HeaderIcon>

        <StackPanel Orientation="Horizontal" Spacing="8">
            <Button
                VerticalAlignment="Center"
                Command="{x:Bind ViewModel.OpenDirectoryCommand, Mode=OneWay}"
                Style="{StaticResource SmallIconButtonStyle}"
                ToolTipService.ToolTip="{ext:Locale Name=OpenDirectory}">
                <ic:SymbolIcon FontSize="14" Symbol="FolderOpen" />
            </Button>
            <Button
                MinWidth="120"
                VerticalAlignment="Center"
                Command="{x:Bind ViewModel.CloseDirectoryCommand, Mode=OneWay}"
                Content="{ext:Locale Name=CloseDirectory}" />
        </StackPanel>
    </base:SettingsCard>
</local:SettingSectionBase>
